Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1812540imm; Sat, 23 Jun 2018 03:20:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK57u5jguqH5lkK0hyTToQRZoHM4P0vjXdHgdf2MFR45Ync/YoG2H6IcqOUxcoGqu0R9911 X-Received: by 2002:a17:902:6f0f:: with SMTP id w15-v6mr4936045plk.216.1529749201555; Sat, 23 Jun 2018 03:20:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529749201; cv=none; d=google.com; s=arc-20160816; b=MC1QXMIw4nYbgPyZiROiQhpiDIomrQcXSRLRHEKbZe9u8ssMLCV1gR3XrSgqCZ9O18 gqjQaXMAMHAr7BxQ0g2kzG/pvxxoRjHbSqU0PgipPPbupD6qa0KDycJ8rCWpCVw22kxF 9G/Bfag9qjuzLRe1kejLrehlaj9f6GY9tgVHBTjLKTn0i/YLqDpcUZFhvtAxIVYKLkSl IJjbQRQAOkxKns+lRAggn+dZWERGEk60oboCPle1lwam0d+7TXvXo8mcFn5mfRgg80PL Jl7GCulxSaUrqwJWV3JzKCQYsZbKO9/cmgvJQpko4HeCf93nfwbDyj7u9/r3r2UhXiUF FSOQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=BODQNBqRpuGnKmtZG4ROOyl9nVAcjDylPAWaxQz01eg=; b=MiALZDCVc1E4Qa0hoIVzEa1wyKFEhcFo1FTpPoLD935A9HWkSBfrDj130tNsXw+AD6 qVZA3sJ7Wzukl/DAEPZJZFLkOZbqazrmuir6HxYtpAkQh1MJcJFCaF447pjaPIctqIry c9ts4Tva1uD5KlounYUv3QKXEewP8rHV2mNhyB2gqPsJX0SutvYOaHmiHAT2R1MFhRXy OpGxQ8fqOrcWH0Ulc2sBIa/8KQIDnrAWAoi3AfPbk1LdeSVUsaGhG3RIoDprGrt+USdL g8ULZ7LrsIgE5LqobvI6VllhYDV0jLka30sgH1/qo6HNphyshN2Qwge2LsVDVK3hyKeZ zZzA== 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 g61-v6si9466407plb.169.2018.06.23.03.19.07; Sat, 23 Jun 2018 03:20:01 -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 S1751652AbeFWKRL (ORCPT + 99 others); Sat, 23 Jun 2018 06:17:11 -0400 Received: from mail.bootlin.com ([62.4.15.54]:43315 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbeFWKRJ (ORCPT ); Sat, 23 Jun 2018 06:17:09 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 42EBA20720; Sat, 23 Jun 2018 12:17:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 8001C203B0; Sat, 23 Jun 2018 12:17:05 +0200 (CEST) Date: Sat, 23 Jun 2018 12:17:05 +0200 From: Boris Brezillon To: Peter Rosin Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , 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 , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Sekhar Nori , Przemyslaw Gaj Subject: Re: [PATCH v5 01/10] i3c: Add core I3C infrastructure Message-ID: <20180623121705.1d618c5d@bbrezillon> In-Reply-To: References: <20180622104930.32050-1-boris.brezillon@bootlin.com> <20180622104930.32050-2-boris.brezillon@bootlin.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Fri, 22 Jun 2018 23:35:34 +0200 Peter Rosin wrote: > On 2018-06-22 12:49, Boris Brezillon wrote: > > Add core infrastructure to support I3C in Linux and document it. > > > > This infrastructure is not complete yet and will be extended over > > time. > > > > There are a few design choices that are worth mentioning because they > > impact the way I3C device drivers can interact with their devices: > > > > - all functions used to send I3C/I2C frames must be called in > > non-atomic context. Mainly done this way to ease implementation, but > > this is still open to discussion. Please let me know if you think > > it's worth considering an asynchronous model here > > - the bus element is a separate object and is not implicitly described > > by the master (as done in I2C). The reason is that I want to be able > > to handle multiple master connected to the same bus and visible to > > Linux. > > In this situation, we should only have one instance of the device and > > not one per master, and sharing the bus object would be part of the > > solution to gracefully handle this case. > > I'm not sure we will ever need to deal with multiple masters > > controlling the same bus and exposed under Linux, but separating the > > bus and master concept is pretty easy, hence the decision to do it > > like that. > > The other benefit of separating the bus and master concepts is that > > master devices appear under the bus directory in sysfs. > > Are bus multiplexers relevant to I3C? Not yet, but who knows. > The locking needed for handling > muxes for I2C is, well, convoluted... Do you remember what was the problem? Anyway, I'd really like to have basic support upstreamed before we start considering advanced use cases that do not exist yet. Don't get me wrong, I'm not against having the multiplexer/locking discussion, but it should not block inclusion of the I3C subsystem. Regards, Boris