Received: by 10.223.185.116 with SMTP id b49csp5378066wrg; Tue, 27 Feb 2018 12:14:21 -0800 (PST) X-Google-Smtp-Source: AH8x226hocOGWan3vTdoWSilBWmMjNXx1jX135VZZaO7knEzXivQpQ45qSfZS2UPdeOXVMaaH20y X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr15424414plk.180.1519762461613; Tue, 27 Feb 2018 12:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519762461; cv=none; d=google.com; s=arc-20160816; b=n7cx33c8nrwa/EdMV9MAR5i/jYX4C6DSIOEP7ehPTBsvzy1T7MMrFMl5znoz8xnU9u qOhQ1i2yMBIopP2FiI62ci3lNuHq/kzQT6au89wnSbMKbkyofojvjBr/dW2bReRQs3n5 YbTyw9FXNpu3hmsouaMNbVn3fJmVhq3rzQPFEh9ZwoUQVMDdeeraNJasUSBoeyBHlBPh O4wt/I5eQGH+5reg9/KmAiVEN7FRMvTTD5cUdgNUHMwZ6MgwQiQ12W22FBLO/jz3EnsD zEVUMJvAJJ0HfB1E2pZWVOBDiNFF0XIN9qBe4+cCLVtaCzP6ad4sIdGx0p5XLNUEbpqo SgIQ== 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=SgTpscWBMeqXXRjwLcNeuxI6nvAFT/QVNu7hgjiR1kQ=; b=CkHDLhySQKGaXm4BK9S5DpGdNA1iR7Uc62WchTgjaK8TId7yO5J52/M6ECt4AIXbFt p7ertWFebWwupbJD/o3XMcpGBZkUE+ssYMaOHMfk0AC3FfBvYyHFNiPQrnjqE+I4rA7t EYbamQx1uSnuDUZG7cMhYLA3JQkrSJ+tKrH0D/AZ0Uv4O3VB4sJsrhTKNdzwSZhLQAiu s0EOBmYFc8FzyU9E6RPBr4dMkM45lUEe6siHO2V2uJzCNZr5UXz6iV96Ei2Meb71Gjuu n/Y+QQLiagwvbbblEJ6PR4XpEZTXrI/Nm5+mKHntlQl8g+MeA2qNT7C9XP96jtHz3bYh ouQQ== 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 k5si7351776pgp.751.2018.02.27.12.14.06; Tue, 27 Feb 2018 12:14:21 -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 S1751849AbeB0UN0 (ORCPT + 99 others); Tue, 27 Feb 2018 15:13:26 -0500 Received: from mail.bootlin.com ([62.4.15.54]:37887 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbeB0UNY (ORCPT ); Tue, 27 Feb 2018 15:13:24 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id C26C520881; Tue, 27 Feb 2018 21:13:20 +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 B00B320949; Tue, 27 Feb 2018 21:13:02 +0100 (CET) Date: Tue, 27 Feb 2018 21:13:02 +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: <20180227211302.26f76427@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> 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 Przemek, On Tue, 27 Feb 2018 16:43:27 +0000 Przemyslaw Sroka wrote: > > > > >> Either important is the SETDASA for declared I3C devices. So the DAA > > >> process should start by send an SETDASA and them ENTDAA CCC > > command. > > > My understanding was that SETDASA was not mandatory, and was only > > > useful when one wants to assign a specific dynamic address to a slave > > > that has a static address (which is again not mandatory). > > > I've tested it, and even devices with a static address participate to > > > the DAA procedure if they've not been assigned a dynamic address yet, > > > so I don't see the need for this SETDASA step if you don't need to > > > assign a particular dynamic address to the device. > > > > > > Could you tell me why you think SETDASA is required? > > > > Yes, you are right... But in my opinion it is required as it does part of DAA > > process. > > 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. 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. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com