Received: by 10.223.185.116 with SMTP id b49csp5431953wrg; Tue, 27 Feb 2018 13:15:38 -0800 (PST) X-Google-Smtp-Source: AH8x224+iWsTo7fqjIBeTndtjI8dYKoX5XVAuAVWDXyOmFaDTRz2e1plaU60GAcgOI3lwmj6EQHf X-Received: by 10.99.122.12 with SMTP id v12mr12446292pgc.128.1519766137971; Tue, 27 Feb 2018 13:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519766137; cv=none; d=google.com; s=arc-20160816; b=yJZfglrmx2/Vmoj83jAYrnL0AbM1C8xDn0RxBh30WIzuyacmWiG1AyEFJBtTYWYx2l qsMmpBhebO0WNiJy2N6VYNHh3h79bI6bQQBsrLgHySLM+TDBAxEmFgNQYCnY4DDT0n3Y YJ84/7Q7RYJjOFyh6LvEZ9AFpQDOrWgO/LCafO/0834ekIC9tiXvegHjdQorac/2DWlZ DS0tr9XlQROwVeaEzRqbB/QBkGOoFovLTqvdUYYDLctyQK7ig0uemDLfKj3t06WStrTi 784lPeNGOlan6FECrJFKNMUgHp3QUSi6qCKUTBaKJUQSNGgj6XieZO/o9wW8rf2bPm1V W8rQ== 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=/5EEkiYp/JNtvF0KVtm4VwXNFcxMQTZ5m1a94lu0UtU=; b=DRrpJ/Y03OE38S4hi+jMzfpWaf3t66L4hunx9PCwFbybJDqMrChRxkq7cikEdTlex0 mG2Gmz2+vBwOFqcUXjMvxvaj/im+Z1FMueqi557+VHLvmWMXVVbFN9nKmgKXGGpKYRyt F59cmOYrESXRjXTGF9koTqpebHyQH6vVTVbDQVT+2GQc1eh8J7c+FdXIBvZJ/r9T8pkf LZukbG9GKBI2GbDlwK9+7IaKKzWhX+0WiXgXCEOywxJRz14P/h9wlvI+EbBjQ0eedmXX ScK++Zh79xeANyqH8GdT9fs8p47Mj1Rfuxhp3enixdvymgnSdnWD+DbubVELsCn5oR2q 5Wtg== 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 38-v6si56689pln.397.2018.02.27.13.15.23; Tue, 27 Feb 2018 13:15:37 -0800 (PST) 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 S1751956AbeB0VOZ (ORCPT + 99 others); Tue, 27 Feb 2018 16:14:25 -0500 Received: from mail.bootlin.com ([62.4.15.54]:39028 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751844AbeB0VOW (ORCPT ); Tue, 27 Feb 2018 16:14:22 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 69D96207E4; Tue, 27 Feb 2018 22:14:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.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 (unknown [37.171.238.219]) by mail.bootlin.com (Postfix) with ESMTPSA id CFEE02036E; Tue, 27 Feb 2018 22:14:07 +0100 (CET) Date: Tue, 27 Feb 2018 22:14:07 +0100 From: Boris Brezillon To: Przemyslaw Sroka Cc: Vitor Soares , Boris Brezillon , Wolfram Sang , "linux-i2c@vger.kernel.org" , Jonathan Corbet , "linux-doc@vger.kernel.org" , Greg Kroah-Hartman , Arnd Bergmann , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , 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 Subject: Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure Message-ID: <20180227221407.0cd7f8a9@bbrezillon> In-Reply-To: References: <20171214151610.19153-1-boris.brezillon@free-electrons.com> <20171214151610.19153-3-boris.brezillon@free-electrons.com> <20180223213000.407461d2@bbrezillon> <1b8fe82f-079b-6f55-0e59-5773027faa8e@synopsys.com> <20180226213607.7161bb0a@bbrezillon> <20180227211302.26f76427@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=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 On Tue, 27 Feb 2018 20:24:43 +0000 Przemyslaw Sroka wrote: > > > SETDASA is simply faster than ENTDAA, but only if there is no > > > need to collect BCR/DCR/PID of such devices. I think most > > > applications would like to have them as an status information so > > > after all ENTDAA can be regarded as an generic approach (unless > > > I'm mistaken). > > > > Actually, we could retrieve BCR/DCR/PID (and all other relevant > > information, like MAXDS) even with the SETDASA approach. We just > > need to send the according CCC commands after SETDASA. > > > I agree, what I meant by "SETDASA is simply faster than ENTDAA, but > only if there is no need to collect BCR/DCR/PID of such devices." Is > that it is faster than DAA but only if not followed by GET CCC > commands to gather BCR/DCR/PID. I think we are on the same page here. Yes, but right now it's not the case, see my other reply ;-). > > > But that's also my understanding that ENTDAA should always work, and > > SETDASA usage is only needed if you want to reserve a dynamic > > address and assign it to a device before DAA takes place. This way > > you can enforce the device priority (WRT IBIs). But honestly, > > that's the only use case I can think of, and to me, it sounds like > > an advanced feature we may want to support at some point, but don't > > need in the initial implementation. > Still ENTDAA seems to be sufficient for IBI prioritization but I can > imagine some use cases where people would like to use it for such > purposes. Note that SETDASA is applicable only for devices with SA so > it is self-explanatory that it cannot be considered as utility to > define priorities for all devices before ENTDAA. We have SETNEWDA for other use cases: say you want one of your device to have an higher priority, you can just manually set a new dynamic address that is lower than any other devices on the bus (I plan to expose that through sysfs, by making the address file writable). -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com