Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp653300imm; Wed, 17 Oct 2018 06:19:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV61k7bXCASeteX75vl7mlIsz6aNBZhjUT3utcBBfAS8tprxv+HnISAckMUg4BBq5dv6NLbKg X-Received: by 2002:a62:1316:: with SMTP id b22-v6mr26486987pfj.37.1539782390198; Wed, 17 Oct 2018 06:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539782390; cv=none; d=google.com; s=arc-20160816; b=yfrPZ6dcWl0KzZW7U+4JdUcWZyL+IDcm4O+pVYEgDSFPAdlEKzFijhm+HknZXc92D+ 6s/eWkqwi7zzgp/ky16ck9OuylT73ZOIlquCk8xQ5aHMYOPklcWN06+6UIY+ZS5x9ESs MIk4wF/sja0Y1XOO5FyrW5oH/LnKqLFd8qho69Tty9IJZ6NeDml27Zcj7+ldzwKr197d x+KFYNBKPQtE7BLq5aAjlEJLKrn9yKTyIptw5HcG2UctG/Nb30vWBLmzDA1skwVAfMzA SzDwSjqSwKXt9L6t4wMdkGqQW9GVarl16+OBpqSAiQKQwFEOZ+iPfbvMRar+oNTwlh6Y 5A6A== 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; bh=roBENiRE4+yM2gCpCb9VBrFgL8ZZyIhNmZSiMmbTwp8=; b=pnE31jntAkD3uub2gdeEkn0QTbqB3qnl2zXwlMdC1u7yYR1UA/gyAtYjn4fXBuZEr0 JRu4TBSey8SWdL00ViCvF3u0KpYId5GagoO+k5Q1Xe9OFYsZMTmsyMOvRLLYnfWH0phg Mka68ukD//B/jxyYNzzCHwd/WgjR6ir3TxwKqA1T/f0NcFu+o6Eo1foPB/MtGwlxgvDk isAy1Rb79m87xbBERysxVUpfUH2Tt/ZcA0Vw57Pa5ohga26UZK4/rsWsqPEIwsQI5gL0 SzD/OmrVJaZSQ8hmH3CXcsoA/yGwCCdQAOoBvsf4TnJeWP0UMkDioF74MfjLI75byohq 0QUg== 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 o68-v6si14647442pfb.203.2018.10.17.06.19.33; Wed, 17 Oct 2018 06:19:50 -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 S1727418AbeJQVOX (ORCPT + 99 others); Wed, 17 Oct 2018 17:14:23 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52871 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727255AbeJQVOW (ORCPT ); Wed, 17 Oct 2018 17:14:22 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id AD9A4207C4; Wed, 17 Oct 2018 15:18:39 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-7-245.w90-88.abo.wanadoo.fr [90.88.129.245]) by mail.bootlin.com (Postfix) with ESMTPSA id E3D9520712; Wed, 17 Oct 2018 15:18:28 +0200 (CEST) Date: Wed, 17 Oct 2018 15:18:29 +0200 From: Boris Brezillon To: gregkh Cc: Arnd Bergmann , Wolfram Sang , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , 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 , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj , Peter Rosin , mshettel@codeaurora.org, swboyd@chromium.org Subject: Re: [PATCH v8 00/10] Add the I3C subsystem Message-ID: <20181017151829.470930a7@bbrezillon> In-Reply-To: References: <20181003132212.12619-1-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 Greg, On Mon, 8 Oct 2018 12:47:21 +0200 Arnd Bergmann wrote: > On Wed, Oct 3, 2018 at 3:22 PM Boris Brezillon > wrote: > > > > Sorry for the huge delay between v7 and v8 despite the small amount of > > things I was asked to fix/rework. > > > > This patch series is adding a new subsystem to support I3C devices. > > > > This is just adding support for basic features. Extra features will > > be added afterwards. > > > > 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 I3C bus and I3C master controller are now tightly coupled even > > though they're still allocated separately. There's now a 1:1 > > relationship between these objects, and the I3C master is no longer > > represented under the I3C bus object. > > Arnd, let me know if you had something different in mind, and I'll > > rework the implementation accordingly. > > I looked at the entire series again and I'm rather happy with how > it turned out. I've commented on a tiny issue about the readsl() > that should be easy to resolve one way or another, with that > you can add my > > Reviewed-by: Arnd Bergmann > > There is one additional issue that we've talked about previously > and that I'd like to hear about from GregKH or maybe other > subsystem maintainers: In the current version, you have a single > 'bus_type' object, and this is used to represent both a 'host' and > a 'device'. I think we concluded that this is done in other > subsystems as well, and that this is fitting here because a > host (master device) can hand over being a master to another > device (slave), which then becomes the host and sees this > one as a slave. Also a lot of the sysfs attributes are the same > because of this relationship. > > It also means that you get a mix of things in sysfs: > > /sys/devices/i3c/ > /sys/devices/i3c/ > /sys/devices/i3c// > > which is a bit like what we have on USB where we can have hub > devices that are again parents of other USB devices, but I don't > think we can have i3c hubs or multiplexers in the same way, so > it's only a single level. > > I'm ok with this model after our previous discussion and couldn't > come up with a better one. If anyone else still sees it as > problematic and has a better idea, please let us know now. I know you're quite busy with the 4.19 release, but if you find a bit of time, that'd be great to have your feedback on this. Thanks, Boris