Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3417443imm; Mon, 8 Oct 2018 03:48:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV63R6kEkiMOM+Psjgegh6qKolwhEnX+XL6G8lsXFzwYI6N+YJDm/bWP3gm3fGoKFChcqEjOm X-Received: by 2002:a65:580d:: with SMTP id g13-v6mr19498611pgr.370.1538995683665; Mon, 08 Oct 2018 03:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538995683; cv=none; d=google.com; s=arc-20160816; b=K4eXYVPgEZHy3czi/ZggeHX5JU0Cv+hg44tG/8DzkK/0DgLxkrFU7FEOOKjpJ1sRny daVWLHnhmhbq8ZKvDKIGK8iKjmm0utLifb6+4M9Y7T7eGa9iTdS5S1aPahyHD+2ns9Kl yG+xuAwKWVepGmg1ZuWbswCaBS2yw1CzQSDbLC205BaGTASl0Yjas5Ul3fv7Z8UEZ31x Sgt0EvtOLkthM5sUeMP2D6Bp8PLxjDKgefkNLlrI32qJFfvk+mK9VRzp1IF/XJsbm14a 9esOfAIuahl6kyGeYGs6uxT0RN7WT5EWgHHsu3klwy9VRnGKFVTLzaQNMt4PNNumr4jQ L4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cnJqKGfKCJn6THfdu0w+U8mp3PA/UTX51c6e69INi9o=; b=ExRalGLTJ4QUHyrFQe60FAkIssRFqaCmd5nUkgY7dClvV5r+amDTwiG4sGgr3S7UrW 33j19+Vs+gBxpPgGwxfEQfdEkbCnJYH9M6/O4G05Gn168kseEi6vKvdc7c9iOOSvxCh1 vuduxSIQMtdVf4eJV2OmLATQy3xkGmmirsbfEDMSJxMwU30QOiYExIpBL3khtS+J5+eZ aDSkyhBcTmqB1VLXkqlYyEgDZxHH2zDzLPZ6jZNWgbu19cPB1bgcSSIxWWJryQqKwwno e313K9UMVrNauUG/6jRiHjXgR/iZ91x79VNmRYao0dq7472HwkaTqpKrbWA3YM+J6T71 NZWw== 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 s9-v6si16539931pgk.371.2018.10.08.03.47.48; Mon, 08 Oct 2018 03:48:03 -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 S1727523AbeJHR6r (ORCPT + 99 others); Mon, 8 Oct 2018 13:58:47 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44248 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726612AbeJHR6q (ORCPT ); Mon, 8 Oct 2018 13:58:46 -0400 Received: by mail-lf1-f67.google.com with SMTP id m18-v6so13567105lfl.11; Mon, 08 Oct 2018 03:47:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cnJqKGfKCJn6THfdu0w+U8mp3PA/UTX51c6e69INi9o=; b=FajzgdHibbsC7lU/qaufFiVDeaaCBagTQScXmJS6znJyuBl2/7aiKUt2jjxljheniW sHPl5Bw8VMfoDPE0SAPuw10/AXHHhMgBNG8D10YzJL84mVpQEiDxtHq8zcrWtZ9PW71M WiD3754smSLFE2OKFa2W+P+9RVrE8O1Zs0a0sWZsPZPAgEWWZY5QGTadjCW7USq2O4Lc mkixQdNa8NMtrZ0AqivYREjJ/WMKvwYWA3M8CjQKH5jwR9eAyLWAFWQZMIeT1SLevoi7 jlEhgXJyiUtbffWr4xNjRfHrM2s0sIcKNnvPi44Zx6lGj2WwatDbr49ytBx6uBjZqWl9 GLgw== X-Gm-Message-State: ABuFfohL3Acgo3wJhF7/IGEF6omjVinCm54t/9EFgSnljKthc9yHVQ4J vRNLBNWRgtuZZgMgzxOgbNDD8nQ1cbR+xmpbjdc= X-Received: by 2002:a19:6d0e:: with SMTP id i14-v6mr12760275lfc.57.1538995657922; Mon, 08 Oct 2018 03:47:37 -0700 (PDT) MIME-Version: 1.0 References: <20181003132212.12619-1-boris.brezillon@bootlin.com> In-Reply-To: <20181003132212.12619-1-boris.brezillon@bootlin.com> From: Arnd Bergmann Date: Mon, 8 Oct 2018 12:47:21 +0200 Message-ID: Subject: Re: [PATCH v8 00/10] Add the I3C subsystem To: Boris Brezillon Cc: Wolfram Sang , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , gregkh , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd