Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp36072ybe; Wed, 4 Sep 2019 14:38:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJerpqMJdKpN53biBviOIRq2NT1yVnVUfqQ5AQLAmOGsHyGBPDRFvnKpLeas5huUDSJ8c8 X-Received: by 2002:a17:90a:af81:: with SMTP id w1mr315023pjq.143.1567633138705; Wed, 04 Sep 2019 14:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567633138; cv=none; d=google.com; s=arc-20160816; b=S9Hwak8oH5gW/BAOai1YRsSNMq1G/mbYqt3VwG8k24e5fbDAodMnppkn4WJS0I32OB IZgGq7pOZ839IebZ3dsw9UDAkHwez2naAxUozd6b2nUK6db1OA08JELAEnlDTpBw7wAz YD/zk5krhdXflxbfDHYrjAepEnK+YsGv3o9y/4riN/tQeFW3fh6QazibtIfCpKC8XueM 4nL2SKCZ/ilI76jBY9hQdMPTk9mMM2gUhvwGWdqvkvzA+vwtmlGBByisAcHfWGZXk4l7 8yWH7zUzNQdMdE79waJxLvBAWcahwnLdgbEdaUpZ3zurZmDuDCEJHRj5/6+IgpF8CG2K SG2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z+gs6I7tDRR4nT4owoM+DRut+hbimwSMwQ5PzaM1HeM=; b=ZIWt1uVT6wzXfbhT3HooH8PItuHn9uprdBD5g1ycujqV8U0/J55kVwFlkKrpKWne+8 0+njEgMHwpfzE43rCz45oKcRHfVftoDKPD4i3axIU5nt3HPh9ZHYmZ1WDriBu+68p/Ge igZv5vc9xdo4amnYdjxKuyaRH4MOz4/g4SKL63D0a5K5uWCbQ7UKtIFQhxcPwOEbXNYd MYWKnsF36cj3U5nORGhDQ8iklJYYpLAKyNGX1lUj4AgIApcw8mEsFu8mKV1+T9Z83+If K0LdhLLslf8shGef2sWHDajKf6zu9Hl7KzX15O1c/9u3YZSvo5l25eseSeHtPEfOfj1d 90og== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 190si15347874pfz.108.2019.09.04.14.38.42; Wed, 04 Sep 2019 14:38:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730070AbfIDVhs (ORCPT + 99 others); Wed, 4 Sep 2019 17:37:48 -0400 Received: from sauhun.de ([88.99.104.3]:46500 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbfIDVhs (ORCPT ); Wed, 4 Sep 2019 17:37:48 -0400 Received: from localhost (p54B337F1.dip0.t-ipconnect.de [84.179.55.241]) by pokefinder.org (Postfix) with ESMTPSA id E8DCE2C08C3; Wed, 4 Sep 2019 23:37:45 +0200 (CEST) Date: Wed, 4 Sep 2019 23:37:45 +0200 From: Wolfram Sang To: Ray Jui 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 Subject: Re: [PATCH v1 1/1] i2c: iproc: Add i2c repeated start capability Message-ID: <20190904213745.GG23608@ninjato> References: <1565150941-27297-1-git-send-email-rayagonda.kokatanur@broadcom.com> <20190830125626.GC2870@ninjato> <3e70fa7e-de13-4edd-2e17-b7c56e91d220@broadcom.com> <20190831094940.GA1138@kunai> <540c4e2d-0dd5-5260-30b2-e1589b279d71@broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EDJsL2R9iCFAt7IV" Content-Disposition: inline In-Reply-To: <540c4e2d-0dd5-5260-30b2-e1589b279d71@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EDJsL2R9iCFAt7IV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I think you are right that the controller does not seem to support > additional I2C features in addition to SMBUS. >=20 > However, my concern of switching to the smbus_xfer API is: >=20 > 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 a= re > already developed. Well, given that you add new quirks in the original patch here, you are kind of breaking it already. Most transfers which are not SMBus-alike transfers would now be rejected. For SMBus-alike transfers which are sent via I2C_RDWR (which is ugly), I have to think about it. > 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? I don't think so. If you check regmap_get_i2c_bus() then it checks the adapter functionality and chooses the best transfer option then. I may be missing something but I would wonder if the sound system does something special and different. --EDJsL2R9iCFAt7IV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl1wLqkACgkQFA3kzBSg KbbdPBAAsHYbJFSjXbArIzGj/6rYqzbUnvYeKqVHK/C1E7C1/89RAeVkba81NFsu PjHeTsrPaMQ6lK5Df79WK8I0EDf++K1Imv1edG64CamFTHqc60rVShO3ifPnQf8P XrOEAUxLEsoXjAqsUy9Nl2xU9roZxcglRdSSg+rlDsN6WRJ8bq0xg7I/7pPs0t/m DU+77rOjrqcj3mKJsMvcH/ay4tAYQGwXKalqLwkRuy6u5bQ98G/z9mPdGRwBXxx7 2lg61m1t05rmuU8PQZnnD1xB8syyt3/ivq4VWVs/9ghtAoTirMGtkhWu0SIQ17M5 KePWtCxia4A4rHQeEF6vdrbuZAcPqFy8ttnoccsUBBXLy4KYs2zguxiss0EXq95t QHW83RzcyxpPqqbVPAgtoQONVcFBLvJ3p5LDIHi/kgosLcTyyjTfre1vzRcG8j9S j/q++XaORKmfJ4evfK5AdbexTLnXGlUyXcRj0vQElOHxVOwk2PbjYAAq58XKsY9W 95LmlBMR2kDB/GCdZWGdTt29hyyhLgde4temx2eBCAqafAhAsPdFp8sFA2mEkaC4 h5rby01u7yD66c8hpI/4q5psgoj1j7fRctKsdtxb/S8P2sHcKZ6HygntSmmEb+WG BGd+gabtDbQBSHrOxqYrYBZVQFNf3YABNMFvC5LuvgMs3Ek59iM= =s2Lx -----END PGP SIGNATURE----- --EDJsL2R9iCFAt7IV--