Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7136479imm; Tue, 24 Jul 2018 08:58:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdmHGJcJOOZ/yxHjQgyR1cjB+AwbwBHAatiwb8eid6Kpp4BfvT80HyNA/tnK5mXtP3jZrl9 X-Received: by 2002:a63:d20e:: with SMTP id a14-v6mr16815813pgg.226.1532447935354; Tue, 24 Jul 2018 08:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532447935; cv=none; d=google.com; s=arc-20160816; b=qpmiYVWOTJbf0EH5xD72BLpSmdIBMLJT0naWRagdgvBk9wq4jv89NjMfe84KwLnDgS rhy6ve9BSmno1v8IPpR0T2qKtKKajiwAOgAeo/cVWa2xNDD9c4IImKyp60COWccRHsSB ieooSouiyER/pV8M4v/4+aYMh5uZTpS6rD16PJzba+jI7jMFqdSnfpWvyYVX7dnhE69o da3x+v/pmtLIYfRv7oF0uCP76opXdtpMp3EDPjrKQ3r5sY+vVD7+3WGodVCnFDUuMLpE 3mmh9mBFjqD5vqHS/1OMAReKqTOdkpMC+9jzGFUhNZlhKmdVDcJCPupu6deTxs5MtXFt doPQ== 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:arc-authentication-results; bh=r/6X2zxyPlmMlzOWF8qGD8RqWFdbrpbPuiF03XHyolk=; b=e33aPAf13uRwaqVS0IzSu6Mmv7cvc2tkxZ9IqX/iCJgF4D4wyFo/kCgdSvlX18S2CB 8s459sy3L9xg5dNEk0p4QfILM+ucqrq3shkfe3U/xDxX+SRBz7Zia4EPdz8ZZTJIwrrD tYYj22VCnvyi5Cq8prX3Z9Ku5B8JAmTXwcWTLCa2Z8u8mYNKlDAXilVOPyeOAC5d6toz +cKw4+HHflGAhziu6uy1xdxbQJdz7/eI04mGOMqvL5U5QLrL+RNWXsXKOA1ZpBVLC5jy tdTq+xIL4rFCfK0XoAShQ1mgoAs+VXRN9bcxNKSL8ahbfvJPdDqAbzOrbg7/DTv4Bh2Y M5yA== 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 t1-v6si11601137pgg.643.2018.07.24.08.58.40; Tue, 24 Jul 2018 08:58:55 -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 S2388498AbeGXRE3 (ORCPT + 99 others); Tue, 24 Jul 2018 13:04:29 -0400 Received: from www.zeus03.de ([194.117.254.33]:55464 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388395AbeGXRE3 (ORCPT ); Tue, 24 Jul 2018 13:04:29 -0400 Received: (qmail 24588 invoked from network); 24 Jul 2018 17:57:18 +0200 Received: by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 24 Jul 2018 17:57:18 +0200 X-UD-Smtp-Session: l3s3148p1@dpAJ0cBxfMAgAwDPW8tnAAId4P/+oMhl Date: Tue, 24 Jul 2018 17:57:17 +0200 From: Wolfram Sang To: Arnd Bergmann Cc: Peter Rosin , Boris Brezillon , linux-i2c@vger.kernel.org, Jonathan Corbet , "open list:DOCUMENTATION" , Greg Kroah-Hartman , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , DTML , Linux Kernel Mailing List , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Sekhar Nori , Przemyslaw Gaj Subject: Re: [PATCH v6 00/10] Add the I3C subsystem Message-ID: <20180724155717.aodl6xehacparo7b@katana> References: <20180719152930.3715-1-boris.brezillon@bootlin.com> <2ab0ab75-2df0-2714-f007-c33b25481016@axentia.se> <20180720101206.tv7nsoanwo5ftnia@ninjato> <21b269c5-a3a7-c5de-c81e-c9c9301ae13e@axentia.se> <20180720154132.2fwmwpiwtxa73ljf@ninjato> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i6qv4o2lf76sjo7x" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --i6qv4o2lf76sjo7x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > Renesas R-Car Gen2 has two I2C IP cores. One can do DMA and automatic > > transfers to the PMIC, the other has I2C slave functionality. One cannot > > do I2C_SMBUS_QUICK, the other can. And some more kind of quirks. > > Sometimes you can mux the pins to GPIO, so you have a third option. > > > > This setup is the reason the demux driver exists. >=20 > Have you run into scenarios where you dynamically switch between > the two masters in order to do different things (on one slave, or > on multiple slaves), or could you always decide on one of them > at boot time with that particular chip? My personal use case is debugging. R-Car H2 is great because I can always pinmux this or that I2C IP core to the same set of pins, and in 2 out of 4 cases even GPIO bitbang on top of that. So, it is great to compare behaviour, do scopes with the same type of setup, etc... For that, I do runtime switches, but the slaves are not really under real usage. I have absolutely no idea how $customers use it, sadly. > I think an SoC design we will likely see is an i3c master multiplexed with > an i2c master to access one bus. The i2c master can then use clock > stretching and other things that may not work in the i3c master, and it > may be used in the absence of proper i3c drivers in the OS. Multiplexed? Well, as soon you want to use I3C features like IBI, this is not going to work, right? It will not even work with Linux being an I2C slave itself. Or do you mean running the I3C and I2C controller simultaneously using the same wires? > However, that case cannot be handled with the abstraction in the > proposed i3c framework, which can only deal with multiple i3c > standard compliant masters. I'm also not sure if it can be added > to the i2c-demux-pinctrl driver. The I2C demuxer maps the whole bus to an i2c_adapter. You cannot select a master per client. --i6qv4o2lf76sjo7x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAltXTF0ACgkQFA3kzBSg KbYVlg/7Bu8HOA8vNgSwokh1EIbhJ2F5B1TAS9MbdWMQUsvRm3WXDaCsQjjXS1JT x8YJ3JNpaAd9LpsvvklSu2HFJ8oqRFSvyj4phy6jENzQgVpX99EgKU5opORUrpX/ lftSUltKMSnC97TgT3g4nn3atIau+qQI452/Cnugm10XaFKyeqk3neUtK+Tc0Lhs RvU+MRc0fB4T4/1MIVEVc7xTXNjMKBnvzEslvP9K3VNrD65Itb2LKsaH3TqHqJkc 9Sn2sfH+6EZoLWvtBC0gvQ0EEd06PjO9UIMY1Kqzz3LgcMVE9BevvFSIOsWTlVtl EaqHiVBUJf4iiAYCAOIp6OkxXiYbgizk1VUEP9dX4Kmc4zSYWzOalzlP251vKbGI kvqn1onOHJly6WBvZApkiffqAMVrQ8qZsxRs5AdUz95Y/REjHGTssF67AuGVABnB OyqhY4FmIEuSPzpQkXgj8d9MKj7ys02GcBIFj2Ho9MwcMNaZpUUZZGCj0zeTAcsi uckxRSIIEk/PXIPNoT5VMmtLUyOvfU2NLerEHbghZr/v3KM9vq9ACDsxnb/d2h6H BM1g/NyBqMGOa0Fk+y7maNtQDKYkUeZCNuLbhjMRdGwux+hwLiZdX+gU+WsF7sDM wRNq7yIVmgb8yv2NGiE+FnUZE6N5sa8lmlgbhPG2PRRMw7s7Y7k= =+Hcu -----END PGP SIGNATURE----- --i6qv4o2lf76sjo7x--