Received: by 10.223.185.116 with SMTP id b49csp5388294wrg; Tue, 27 Feb 2018 12:26:02 -0800 (PST) X-Google-Smtp-Source: AH8x226BO8Js0eQuzfwuvJZsmX7gsFLf41uZNH6UR62okJI3tLH4vVRYU6IBQjoj5oefns85MqZc X-Received: by 10.99.174.66 with SMTP id e2mr12248756pgp.269.1519763162402; Tue, 27 Feb 2018 12:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519763162; cv=none; d=google.com; s=arc-20160816; b=gSIBw+tA3CztKe3fuW2rG00g69T+ABILN4QlmoW1gsQEm9pUjjYuvC83eFlI+QHOdg 9/OFZWMOM47dJhjXjpAkBItkzbpwjh7maljKB4IHNakoaqNe02pOGKeZeuLCCal55GaB 5GH4FinIT81SCHeIxNOBmpdaQURtoTB+cj2S1RhPU+GeCHrjxYhB5GSJXZpp4XU2opo9 34evKbfQcP/SMILu8pHT/R0P2kAZgNbiKaVgFbupvvCsRVjEQw96BdGJKokbU2/sI8wN H8qRdBcfNCRIaxoDqJRaNugvlYVsNzYtTZtyIYyKi9UlVQiERf1Krrw3ke3hMdAKfn52 W+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8D2xIAn2VsFN/MUssITbfkWqrQ/jBe/wF/mJHawnudk=; b=xq7f5QzKXbdZXjoAEbXIpM30VuSfmHT0d4nbf8uC0uu2Hvzw86LiR6w9UOfTQO99s4 3y/UYGunpLF0quoY+YT8Kb28pi7SOsirv8Dw8lwU3n24vk0A4OWoEcCeutk2TATtlIgn UqoojusGObOFaBQMZO6J5qLK1IofmrDbhOhwtIEwPZnrNC186fETAahbxV+bYYtP+jGT rivz/GwJkQSxNsJuc2t/3kZKu8fEUY52QyJZ4jjQ4S6sjqdALyjU36xcg+3pUZ8mDuFe HDuucnIa5E6Ix8Nks/OthYH4+/MefgGOtFfI+sqgvn45NYfbPbBYCjll/ikHtM6jUzh6 EQDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=selector1 header.b=J8F8I3LQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si4975pfi.3.2018.02.27.12.25.47; Tue, 27 Feb 2018 12:26:02 -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; dkim=pass header.i=@cadence.com header.s=selector1 header.b=J8F8I3LQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907AbeB0UYv (ORCPT + 99 others); Tue, 27 Feb 2018 15:24:51 -0500 Received: from mail-by2nam03on0085.outbound.protection.outlook.com ([104.47.42.85]:17591 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751748AbeB0UYs (ORCPT ); Tue, 27 Feb 2018 15:24:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8D2xIAn2VsFN/MUssITbfkWqrQ/jBe/wF/mJHawnudk=; b=J8F8I3LQgAXvlNIT8Y5fgsVNjUqga935olQs39vKc8I+AB516Ir3kfkMWWKMSIq7JjxyA0zjEn86euS1Bl+Eoa1KEqLtUagez9HG+xZKMiZqcR++vgqitpLgDBEJhD2tMhpcZKWRkECwM8G9u1XmnNf2d+C9lMMvzJ2VO3o0vak= Received: from MWHPR07MB2783.namprd07.prod.outlook.com (10.169.237.19) by MWHPR07MB2973.namprd07.prod.outlook.com (10.169.231.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Tue, 27 Feb 2018 20:24:43 +0000 Received: from MWHPR07MB2783.namprd07.prod.outlook.com ([10.169.237.19]) by MWHPR07MB2783.namprd07.prod.outlook.com ([10.169.237.19]) with mapi id 15.20.0527.021; Tue, 27 Feb 2018 20:24:44 +0000 From: Przemyslaw Sroka To: Boris Brezillon 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 Thread-Topic: [PATCH v2 2/7] i3c: Add core I3C infrastructure Thread-Index: AQHTdO6AxszKxo1J0Uumo+/8HJ1DX6OypJAAgAA7ugCABJ1cgIAAG1iAgAFGSwCAAAVdwIAAQDkAgAAA4aA= Date: Tue, 27 Feb 2018 20:24:43 +0000 Message-ID: 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> In-Reply-To: <20180227211302.26f76427@bbrezillon> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccHNyb2thXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNDc2NWRjNzUtMWJmYy0xMWU4LTg2ZTktY2MyZjcxNmRjMjFhXGFtZS10ZXN0XDQ3NjVkYzc3LTFiZmMtMTFlOC04NmU5LWNjMmY3MTZkYzIxYWJvZHkudHh0IiBzej0iNDMxNiIgdD0iMTMxNjQyMzY2OTg4NTQ3MDcxIiBoPSJBNC9hMXVvUm9paG04d01obW5qU2NXU0xZdGM9IiBpZD0iIiBibD0iMCIgYm89IjEiLz48L21ldGE+ authentication-results: spf=none (sender IP is ) smtp.mailfrom=psroka@cadence.com; x-originating-ip: [213.131.238.28] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR07MB2973;7:MNKw80q98N73YGKyWXPr6hRpPL1/GjRdJImqpbqECw5xj7112otOjveKAUEU/0WVk1lZqr2l39QKD3L0L/3rLhpZBi7V2ofInv4qgzNfj08xHD6/YHeB4lGRRGbFQCks3+DrH9pHSVnEwuC6dlmk9hePumqo+t0yLrhLiq865+smVayXi510n+Gjf6zacj4hBqFhISZMebsBLhExKJpLW7766NW5aisc22D5RVR2I0Y4HHB6q0lF49TEr+s6uKJe;20:fDpjJM1BFUknZ6MtkE0BFX0LFA8+2mG4LolCIfK+v1FN6/2bCb2GOSTQpUSAd08YlrZ3G6uMLxQvxloLNdYQXP/otZvkSUtnBMeW48a5dcjVntBHVCxZVTHj4OgZTUNs1VH3ItAxBZvdkNLe00Yo7nFricK6I8bbKnKW4zi9mHwFWtvn00cITe/nJdQQv7Vn1TIW4ZXMffCai9YAL/t/bLC3cud7r/9xv+no9y+d/lpMu8mYwUUAViWJ1RW7NCoT x-ms-office365-filtering-correlation-id: fd75d81f-3783-4ce8-79ed-08d57e20235c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:MWHPR07MB2973; x-ms-traffictypediagnostic: MWHPR07MB2973: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(31051911155226)(278428928389397)(9452136761055)(58145275503218)(72806322054110)(10436049006162); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501161)(6041288)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MWHPR07MB2973;BCL:0;PCL:0;RULEID:;SRVR:MWHPR07MB2973; x-forefront-prvs: 05961EBAFC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39860400002)(346002)(39380400002)(396003)(13464003)(36092001)(199004)(189003)(81156014)(81166006)(229853002)(8936002)(55016002)(6246003)(3660700001)(8676002)(74316002)(186003)(59450400001)(3846002)(3280700002)(2906002)(68736007)(54906003)(6116002)(6306002)(2900100001)(9686003)(14454004)(53936002)(76176011)(966005)(316002)(97736004)(6506007)(25786009)(5660300001)(106356001)(2950100002)(7736002)(53546011)(86362001)(305945005)(93886005)(575784001)(6916009)(4326008)(26005)(99286004)(33656002)(7416002)(77096007)(478600001)(105586002)(6436002)(102836004)(7696005)(66066001)(19627235001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB2973;H:MWHPR07MB2783.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: cadence.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: MbrLoUHJCQ5zE2gtT8Ica33HYH5LbmgRL6lFy+S3ip7v9aprsbV1Equ1GxHeSxy2Q+S/nBnEOBYXjI1l1mRdYkKCm/MCCdJTdIr9xRSBta4v6GmePDOWYw8Gt2q5GZ/NiXAXK1+sLocbO+SqM+jC2/sJ8IcehEkzRMdwGAiPMLw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd75d81f-3783-4ce8-79ed-08d57e20235c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2018 20:24:43.7347 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB2973 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris > -----Original Message----- > From: Boris Brezillon [mailto:boris.brezillon@bootlin.com] > Sent: Tuesday, February 27, 2018 9:13 PM > To: Przemyslaw Sroka > Cc: Vitor Soares ; Boris Brezillon > ; Wolfram Sang dreams.de>; 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 electrons.com>; 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 >=20 > EXTERNAL MAIL >=20 >=20 > Hi Przemek, >=20 > On Tue, 27 Feb 2018 16:43:27 +0000 > Przemyslaw Sroka wrote: >=20 > > > > > > >> 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). >=20 > 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. >=20 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 fa= ster than DAA but only if not followed by GET CCC commands to gather BCR/DC= R/PID. I think we are on the same page here. > 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 enforc= e > 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 imagin= e 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-explanato= ry that it cannot be considered as utility to define priorities for all dev= ices before ENTDAA.=20 > -- > Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and > Kernel engineering https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > 3A__bootlin.com&d=3DDwICAg&c=3DaUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3G > Z-_haXqY&r=3Db0WPdqYyu0KH4-vSatt-ViJE1riZ603zdXl3hHHp_TU&m=3DwM54- > BGcSfHEklVRsw02O-bnyNkLTe9c0RyBP_ExzPA&s=3DpxQrogG- > Nq4XOMU7SPZ2FZNbgnbnjdERtMm_h7ZcdCE&e=3D Regards, Przemek