Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2626323ybe; Tue, 3 Sep 2019 16:13:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvFP1jcKDVItlQZ19EOw9G4JF/oZckvlHij6NlvugID5w6+nUBq0KNVLbCJ+pvqEOO24Cb X-Received: by 2002:aa7:9ab6:: with SMTP id x22mr3173394pfi.15.1567552392323; Tue, 03 Sep 2019 16:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567552392; cv=none; d=google.com; s=arc-20160816; b=JrkcVUwk8bPx4tkoPVHKa6mwin2pUM3FP236uILQLLVdjyGxxh4KmJ3rgLx+3TG/ak HE1t4uHL+lqEEkbt1c5dTMNBdiuT6e8kMMk6m0oSdejMVhylQEkr+qis4Xnh4U9sXlsQ /ia7Po6kQLH8sxEW0ozQA/rw8Se92ELAXJd5q4KOuhURMsMk9X8Fcr8AfWbSe62Hnpyy R/GLrht4PsNZWVKubarALKbSpdA48oktV+2ml7rWmbdPrjvrQPHxOTvNBwaPNRvFg2X2 36lmTD5enbsGg3SbSrVDhzvqUZc92qU4pvkxquvPLGgk/Z39XvsNtDcVtPjmOcfcNfeF Pt5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=O1IX4sE++65Y4ZZlb31D7PSxnB7F1eURR0p9HiU+wok=; b=PnBSRTtHQqnD5VIR/2ow6PS/82vYXY6Mdn6bOGkT4L/VGBwG2Y7v9P6/lrJaLB++g0 UCdiPV8hb37Ysq/vfF13jeAPNA5jb+VwNSEDkE+SbmxmbMQOTd4dXT0LHAyklTyuEeob CO5DRNeGjIjylvjTlc9oHQ0ClJT9pwlDA7juzVEVlyBAD7gugr5RSvB+Bbyx3n2xd9fQ fnBZtmnTL74f7y5/lFoK0TIo4G0nlw9eNKNZbc93BdGM/Q5lfV9TVIXk8kcbF64uhfgU CMI2dyZohI9DWH93GOR4KqlBNpFzd2k4oGCRNgPDKrdJoDgopkJNjeXghj+KZwEydgIM w+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GN1lxLL7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t62si15284440pgd.175.2019.09.03.16.12.56; Tue, 03 Sep 2019 16:13:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GN1lxLL7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbfICXLZ (ORCPT + 99 others); Tue, 3 Sep 2019 19:11:25 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:32957 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbfICXLZ (ORCPT ); Tue, 3 Sep 2019 19:11:25 -0400 Received: by mail-wm1-f68.google.com with SMTP id r17so1120019wme.0 for ; Tue, 03 Sep 2019 16:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=O1IX4sE++65Y4ZZlb31D7PSxnB7F1eURR0p9HiU+wok=; b=GN1lxLL77dx6OpxYsAzcRowiCyZNoduNxno0mwMUs5BgtQA4I1tsuuVAT8pEJiIKH5 aMMRR5iXVzB9nSZaxZCC8Fall2B9JlTkfMxyyrBN4eA3IKq7TYtxWUDC+nyAF5OdaJ+/ A9LuEnE/5h0F2/mIen8Joti9/624aDslqpLSY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=O1IX4sE++65Y4ZZlb31D7PSxnB7F1eURR0p9HiU+wok=; b=f1w57JR55JXyXnFgWSLaiN2hvWIpLhD+SrORDd2FTEW9A+qdE/B0PQ8+6oOUdtIvkk 3r/8NSIsOO08U3/ij4JsEclYv5NUjgmIKgnvMY1tiS3siJTicvpO3HiNnn4Fu/l5LPhm F9F9o92H4qLY3WVWK11D7hy6s5KlY9yfX1FQwQ6ls2Vx29bBNM8Jq4tTvja3dtdokY7S /90lyu5AQUJCY3j1fkdymL8+JTblqVLIBxU/sHz7Yit4tNirwf+G/tU/AsiHo7smcSzS 0TCMSPYy+tqZ5pVyb9P6dfmj4kLZkH3ZhU834+C+Fwwzh4fg4OrnN9uzC5dWlfhz/r4d 6V0g== X-Gm-Message-State: APjAAAU8SB8jsbdjFjiqpwiU33ZCq2XWRGdRIE15FOzjL3p3kt0df5f6 QKv/XviurPT9fcGz+uqwGNyvag== X-Received: by 2002:a1c:9ec9:: with SMTP id h192mr1877598wme.105.1567552282880; Tue, 03 Sep 2019 16:11:22 -0700 (PDT) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id v6sm1649818wma.24.2019.09.03.16.11.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Sep 2019 16:11:22 -0700 (PDT) Subject: Re: [PATCH v1 1/1] i2c: iproc: Add i2c repeated start capability To: Wolfram Sang Cc: Rayagonda Kokatanur , Rob Herring , Mark Rutland , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Lori Hikichi , Icarus Chau , Shivaraj Shetty References: <1565150941-27297-1-git-send-email-rayagonda.kokatanur@broadcom.com> <20190830125626.GC2870@ninjato> <3e70fa7e-de13-4edd-2e17-b7c56e91d220@broadcom.com> <20190831094940.GA1138@kunai> From: Ray Jui Message-ID: <540c4e2d-0dd5-5260-30b2-e1589b279d71@broadcom.com> Date: Tue, 3 Sep 2019 16:11:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190831094940.GA1138@kunai> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/19 2:49 AM, Wolfram Sang wrote: > Hi Ray, > >>> With all the limitations in place, I wonder if it might be easier to >>> implement an smbus_xfer callback instead? What is left that makes this >>> controller more than SMBus and real I2C? >>> >> >> Right. But what is the implication of using smbus_xfer instead of >> master_xfer in our driver? >> >> Does it mean it will break existing functions of the i2c app that our >> customers developed based on i2cdev (e.g., I2C_RDWR)? > > If the customers uses I2C_RDWR (and it cannot be mapped to i2c_smbus_* > calls) then this is an indication that there is some I2C functionality > left which the HW can provide. I'd be interested which one, though. > >> >> 1) Does > > Maybe you wanted to describe it here and it got accidently cut off? > I think you are right that the controller does not seem to support additional I2C features in addition to SMBUS. However, my concern of switching to the smbus_xfer API is: 1) Some customers might have used I2C_RDWR based API from i2cdev. Changing from master_xfer to smbus_xfer may break the existing applications that are already developed. 2) The sound subsystem I2C regmap based implementation seems to be using i2c_ based API instead of smbus_ based API. Does this mean this will also break most of the audio codec drivers with I2C regmap API based usage? Thanks, Ray > Regards, > > Wolfram >