Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7070633imm; Tue, 28 Aug 2018 06:02:49 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb8XxRjN4Lvx1FrR2MWULCn1noycirjtvy7zK4C7ESXH289ZGxPW3TfLAK2B8GE1vGsjm6Z X-Received: by 2002:a63:b30b:: with SMTP id i11-v6mr1486502pgf.337.1535461369291; Tue, 28 Aug 2018 06:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535461369; cv=none; d=google.com; s=arc-20160816; b=VI9VfBloFZNmK06DCMIPybJgX66U/uBZ8zCD2pfigNguAyxmShYMgegE5t99xWZvTC SF6f2a8aj7SsCyy+XotEnWqlV7GprhxLOveNDN26tE7Ljalydwq++9p7w4g3+DAI4yoP YKSpbxVlQPf04Z9fQYyF2Yui5B7gkVE9P/uj20ZV8w9J0Ee5Q0zB11h0OFNs/rokvvvF 5WMJ5ll/CS6p/5Qa0mZ1KtMOBhfAY63IwppvnRwYdfcUsbuoeSMsOj6vu2kXabnGKmBL GnldpJ/j+h0YUEbh0EyCJAuB4DsfcQwU/pV8yTVXWg/lQ/g0TmmQXv0O63WR1bRxJDy2 j7cg== 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=bSGXdRZVqsXj4QHdDzGzX4r+4JpOBO+eJXohoJo6kqk=; b=MbJqoPvuGqBLF5xuIbIsVIiHLgmcgfiX7w5vee9ULhEAbmgt6LrRGiwVSPvIk1IC1g 9Yf6CncSXOALUZcVYuYaNKOUNqiF5q66Es4ZfsML6boDerQLZbAqFHIWI3Km0msbu/42 ZmL606J5FQk7b5fcPTB8ZN1aXU6AKCmGh38dlqwgZRd96Siz8wN9heg7GTF8qX4Sbfyr I01Asm3IM+YnOLZ+ktaF5LlxQgVGvOFUwbJWxEjJjaCOds2u0S8qIGS4eiefmcRh//ao 7mzxHZS6ZLcR2QhBNuoBlLO65008FgkrSGvy7IpoACG2R0N8TE7hdbT4h5Sgvxy2guOG GJEA== 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 k14-v6si1049726pga.149.2018.08.28.06.02.33; Tue, 28 Aug 2018 06:02:49 -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 S1728033AbeH1Qwv convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Aug 2018 12:52:51 -0400 Received: from mail.bootlin.com ([62.4.15.54]:44763 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1Qwu (ORCPT ); Tue, 28 Aug 2018 12:52:50 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 200B52072D; Tue, 28 Aug 2018 15:01:16 +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-53-19.w90-88.abo.wanadoo.fr [90.88.170.19]) by mail.bootlin.com (Postfix) with ESMTPSA id 5FC7420618; Tue, 28 Aug 2018 15:01:15 +0200 (CEST) Date: Tue, 28 Aug 2018 15:01:14 +0200 From: Boris Brezillon To: Przemyslaw Gaj Cc: vitor , "linux-gpio@vger.kernel.org" , Sekhar Nori , 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" , Geert Uytterhoeven , Linus Walleij , Xiang Lin , Peter Rosin Subject: Re: [PATCH v6 01/10] i3c: Add core I3C infrastructure Message-ID: <20180828150114.2a816c4a@bbrezillon> In-Reply-To: <4DBE768F-3CDC-41BE-9CC8-E294E7277CB1@cadence.com> References: <20180719152930.3715-1-boris.brezillon@bootlin.com> <20180719152930.3715-2-boris.brezillon@bootlin.com> <20180824143934.6d6b6487@bbrezillon> <20180824201600.7d80bca9@bbrezillon> <20180828140209.29155d00@bbrezillon> <4DBE768F-3CDC-41BE-9CC8-E294E7277CB1@cadence.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=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 Hi Przemek, On Tue, 28 Aug 2018 12:55:20 +0000 Przemyslaw Gaj wrote: > Hi Vitor, > > I have already implemented Mastership request/handover but we are waiting for Boris’s patch to be accepted and merged. Anyway, my comments below. > > On 8/28/18, 2:02 PM, "Boris Brezillon" wrote: > > EXTERNAL MAIL > > > Hi Vitor, > > On Tue, 28 Aug 2018 12:50:12 +0100 > vitor wrote: > > > Hi Boris, > > > > The DT Bindings say "The node describing an I3C bus should be named > > i3c-master.". Do you have a field for secondary master? > > I think we don’t need separate field for secondary master. Main and secondary masters > support similar functionalities. It’s enough to have this state internally and do mastership it it's needed. > > > > > On 24-08-2018 19:16, Boris Brezillon wrote: > > > Well, before even considering supporting secondary master registration, > > > we need to handle mastership handover. As for the DAA operation, it's > > > likely to be host specific, so we'll have to add a new hook to the > > > i3c_master_controller_ops struct. > > Do you mean when master try to delegate the bus ownership through > > GETACCMST? or to get the bus ownership with IBI-MR? > > I think we need to support both. > > I agree. > > > > > I think that could be useful to pass the ibi type on request_ibi(), > > there is some case where the master doesn't support IBI-MR. > > Actually, I was planning on making it completely separate from > regular slave IBIs. That is, the master controller driver would demux > the slave, MR and Hot Join IBIs, and if there's an MR request, queue a > mastership handover work to the workqueue (pretty much what we do for > Hot-Join already). Mastership handover is anyway likely to be IP > specific, so I don't think there's a need to make it look like a > regular IBI. > > I think it's better to have separate function to do mastership request. > > Regarding whether IBI-MR support should be exposed to the I3C framework > or not depends on how much will be automated on the framework side. I > don't the answer yet, but that's probably something will figure out > along the road. > > My current implementation is: when request_mastership field > of i3c_master_controller_ops structure is set, master driver supports mastership requests. > That's how I check if this is supported or not. Can you maybe host your code on a public repo (I can push it for you if needed) so that you and Vitor can start discussing implementation details. Thanks, Boris