Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1521637imm; Thu, 12 Jul 2018 03:26:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfIms6Q8uNKIIoqVKh+dZs/GeDJylqCOufBn25z0QhFAylNBz28IBzOwqkl2k/ku8O/JVhQ X-Received: by 2002:a62:8a4f:: with SMTP id y76-v6mr1737606pfd.233.1531391188600; Thu, 12 Jul 2018 03:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531391188; cv=none; d=google.com; s=arc-20160816; b=qg2J/yeQLJJsXcrT1ac88Mn+L+WuTMz9YXAElzxGBYCEq9B+wKQDxcgIM8Hr23OQWM lBFlF3h8IdbFJFD2a1iX/UmMUYeijVrQ+KpVQgBuaxIcmD9lrzrwshprkiuPXqUTGYUe dKvsV5zLfDUa1BR1FvxPPK8iJajCyHY/VrXJB85OmvrFDWzosa8/rZ/UqSHAEvtjW5OQ OUQXqBtCucTAVNr+dv7H/+e221nEJlaJGKJ9LPBJxtW+AL4NSruPYBmtDKN3yTTUh5NL K+0fScbaaD/vG4meuitszuxXt5MTws/2y3PYTY2+Y0D7ql4PXbO4lSBBTX4nJi0wbVrZ b2sQ== 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=BUd8gkntEYxzNCZRiDXDGC2/Yf5K/Cle9Iy77vYnrTc=; b=L6oZr3mR1+qEb7m4SOq6FAZM5rW4QJJFdJ7jdgP0M53KMA9PsHlRx+NqYn6TFrCOQg 1uTahLb+hDELg2TLaj2+htoe5dNXjr7qEWAi//CAmt2pmpIb7BfxV0cTAFlZdcPGBI2k EO2ddaZ85P/WdAyIiL216aqE9olCr7OxAysYp+FUOm73OZ0ekkcP/ifJI6c0VcyHqjtL 3JWJS0o1lla0+rqxo/XB7x0wLN7heeAnwjrJB2n5dqXMNvZBntyam2VfEK/7rmmyQCTV NiSIVX1y86N6RYFPdCpCtM4aWj2eimV++Zr9BCxQ+eKrQX2+YAHa02vDrRRUj7mg4plu y4FA== 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 g80-v6si22948024pfk.53.2018.07.12.03.26.13; Thu, 12 Jul 2018 03:26:28 -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 S1726818AbeGLKdT convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Jul 2018 06:33:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56155 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbeGLKdT (ORCPT ); Thu, 12 Jul 2018 06:33:19 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A1F8520703; Thu, 12 Jul 2018 12:24:21 +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-12-56.w90-88.abo.wanadoo.fr [90.88.133.56]) by mail.bootlin.com (Postfix) with ESMTPSA id 0A6EC2069C; Thu, 12 Jul 2018 12:24:21 +0200 (CEST) Date: Thu, 12 Jul 2018 12:24:20 +0200 From: Boris Brezillon To: Arnd Bergmann Cc: Wolfram Sang , 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 Subject: Re: [PATCH v4 01/10] i3c: Add core I3C infrastructure Message-ID: <20180712122420.7c3ebd4e@bbrezillon> In-Reply-To: References: <20180330074751.25987-1-boris.brezillon@bootlin.com> <20180330074751.25987-2-boris.brezillon@bootlin.com> <20180711164120.3e32fb08@bbrezillon> <20180711191212.3855bb25@bbrezillon> <20180712000932.3b04ee9d@bbrezillon> <20180712104658.220ef8f6@bbrezillon> 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=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Jul 2018 12:03:05 +0200 Arnd Bergmann wrote: > >> want to be in b) rather than c). An example of this would be > >> an input device on a PC: If the user operateds the keyboard > >> or pointer and we have handed off ownership to a sensor hub, > >> we never get an input event, right? > > > > Correct. I guess we could try to regain bus ownership in case we have > > IBIs enabled. Or we let the secondary master give the bus back to us > > when it sees IBIs it can't handle, as described in section 5.1.7: > > > > " > > Once granted control of the Bus, the Secondary Master maintains > > control until another Master is granted Bus control. After the > > Secondary Master transitions to the Current Master role it could > > encounter Bus management activities besides the data transfers that it > > itself initiates. Some examples are the In-Band Interrupt, or the > > Hot-Join request. One optional possibility, shown at Section 5.1.7.2, > > is that the Secondary Master performs the Current Master’s actions with > > the full capabilities of the Main Master. Another optional possibility > > is that the Secondary Master, while serving in the Current Master role, > > could defer some actions to a more capable Master, as described in > > Section 5.1.7.3. > > " > > Ah, so the current master can ask a secondary master to take over > again even if the secondary master has not requested to be come the > current master? Yes. Then the inactive master can refuse of course, but it is working both ways: - an inactive master can ask for bus ownership - an active master can ask an inactive one to take over > > >> > I agree. This being said, moving to a representation where the bus is > >> > implicitly represented by the master_controller instance shouldn't be > >> > too difficult. So, if you think we should try this approach I can do > >> > the modifications in my v6. > >> > >> I'd say let's wait before you do that change, possibly add a comment > >> in there now to remind us of what an alternative would be. > > > > You mean I should keep the i3c_bus object? > > I mean the ongoing discussion shouldn't stop you from posting a v6. Ok.