Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1956894rda; Tue, 24 Oct 2023 08:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFho8Zy45IgOqYKKuvNZCT4/rozHVZSLMo3/+Ye+BujPacaNW1RbK11hebvlvDBJIjGi62N X-Received: by 2002:a05:6e02:1c8d:b0:351:ab2:2621 with SMTP id w13-20020a056e021c8d00b003510ab22621mr18625151ill.15.1698160353174; Tue, 24 Oct 2023 08:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698160353; cv=none; d=google.com; s=arc-20160816; b=nKjKtXMOA6QZdv2pAeZqXAM8xeJVeULMjWfO7a/7xshZVbeKqxugK3gdQqf5dPYjlh NJOdZx0R9Do3uZPT2P2uIffQTH18OdFxfwJR2navR/7gMkCiByDOeH8ipIpWUQ9jIX0B rOy34SveTAYeIIyGhe4FyLxHBDotCyMMiBIPvLqfnVFAWGnpzeb+nEog7IYTXWjKrEcV hN9b4NaG67jCD2WyeO7f8hJECXu0WmfYIfxRcQIr/uXpg2NZ3nzlaLKvb2NF93ueHibe sAlIuau6/R/qdgdcfBz60x+fG5j7fPYzUUBYslNS+xKRap0U1ka24YAS+JbwRynk66/2 ydIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i3lEmr2804Re0R8BC/B+Wz81u5KMi4oOTUkxC/heGVk=; fh=qxu31jMKF8LUUeIEJ63hgpQ79rddgj05pWB7Q9VvKvE=; b=jISuvnZt8UuR1kXFWUFy3fhPTVcLc+swLS2MI8CAvgHLUW6+zlzRvQ+2MwzF/a/3EF dosEch+sDA/Qg+Tk1AfxP9oeCgHyb1Ut6sEkYs/rxQ6NqP3+tN4dJB8xvQQsCaF3ZHeL gpMpfr6CbdOWrMC22+KAKo6zqKy6DfFTVW+Szaw0Ofbf9wEHCK3Zl9HKNdkpu6UkHL3n gDXonZEy5s9nkOLRY1QEKiBr0qhlGNfBfT/GiHxdgM2M20G5kYe1OHvWOhv6wzvlSlXu eBYyerii8+nwYfEy3qkSbSyDI/77CAgOKRQkDz1JYqcaCTHMBgG3mSQSp+5hYflJ6BYA Ruhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W83XrDyJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m3-20020a656a03000000b0059b7f926c03si8634883pgu.771.2023.10.24.08.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W83XrDyJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 06E2880CB175; Tue, 24 Oct 2023 08:12:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231458AbjJXPMV (ORCPT + 99 others); Tue, 24 Oct 2023 11:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbjJXPMR (ORCPT ); Tue, 24 Oct 2023 11:12:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8211BC6; Tue, 24 Oct 2023 08:11:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81735C433C8; Tue, 24 Oct 2023 15:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698160299; bh=i3lEmr2804Re0R8BC/B+Wz81u5KMi4oOTUkxC/heGVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W83XrDyJOKyT6S6VLNOjrOxU5Ac7Y20mPs1IVs/CzLIAk3UAnHl7q8NPubqOFMLYk lwNGhkVY09SMBJ+kej6OBXOHypHzyy6YU5KT636cForgUFLZRWQg7UzndJMDW28kE4 D4FtNUShbcCOWROXAGdvYx9EpR53M80SjyjG9aNnvwT4GD0Y2GmUcuGFndixEcA5rV qNM2USGw3khqy0okLuqr9Pc6F0nGfhDJPAzNpRA4gBStgbrS/8Hio7jLdQ6wsEh5t/ H2QMa8SHbOWmfGIKrUTZx6oFlfhY8gLkfp9XxivpJhxNrUM6udi9aFMv5CRahhuooz YA/JytV7GprhQ== Date: Tue, 24 Oct 2023 16:11:35 +0100 From: Conor Dooley To: Krzysztof Kozlowski Cc: Nuno =?iso-8859-1?Q?S=E1?= , Ramona Gradinariu , jic23@kernel.org, nuno.sa@analog.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 3/3] dt-bindings: adis16460: Add 'spi-cs-inactive-delay-ns' property Message-ID: <20231024-backache-unranked-c4905d8944b7@spud> References: <20231023140534.704312-1-ramona.gradinariu@analog.com> <20231023140534.704312-4-ramona.gradinariu@analog.com> <20231023-repost-coma-2f67ea8b95af@spud> <5c600a6db6173a56251302da8d2f438435959bd2.camel@gmail.com> <8391fb67-e575-49e6-9857-806cb85e9e59@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AVu1vVpv5euJ77HU" Content-Disposition: inline In-Reply-To: <8391fb67-e575-49e6-9857-806cb85e9e59@linaro.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:12:29 -0700 (PDT) --AVu1vVpv5euJ77HU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 24, 2023 at 03:47:16PM +0200, Krzysztof Kozlowski wrote: > On 24/10/2023 08:53, Nuno S=E1 wrote: > > On Mon, 2023-10-23 at 17:06 +0100, Conor Dooley wrote: > >> On Mon, Oct 23, 2023 at 04:27:48PM +0200, Nuno S=E1 wrote: > >>> On Mon, 2023-10-23 at 17:05 +0300, Ramona Gradinariu wrote: > >>>> The adis16460 device requires a stall time between SPI > >>>> transactions (during which the chip select is inactive), > >>>> with a minimum value equal to 16 microseconds. > >>>> This commit adds 'spi-cs-inactive-delay-ns' property, which should > >>>> indicate the stall time between consecutive SPI transactions. > >>>> > >>>> Signed-off-by: Ramona Gradinariu > >>>> --- > >>>> changes in v2: > >>>> =A0- added default value > >>>> =A0- updated description > >>>> =A0- updated commit message > >>>> =A0.../devicetree/bindings/iio/imu/adi,adis16460.yaml=A0=A0=A0=A0=A0= =A0=A0=A0=A0 | 6 ++++++ > >>>> =A01 file changed, 6 insertions(+) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460= =2Eyaml > >>>> b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > >>>> index 4e43c80e5119..f10469b86ee0 100644 > >>>> --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > >>>> +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > >>>> @@ -25,6 +25,12 @@ properties: > >>>> > >>>> =A0=A0 spi-cpol: true > >>>> > >>>> +=A0 spi-cs-inactive-delay-ns: > >>>> +=A0=A0=A0 minimum: 16000 > >>>> +=A0=A0=A0 default: 16000 > >>>> +=A0=A0=A0 description: > >>>> +=A0=A0=A0=A0=A0 Indicates the stall time between consecutive SPI tr= ansactions. > >>>> + > >>> > >>> You should drop the description...=20 > >>> > >>> Also, give more time before posting a v2 so others get a chance to re= view > >>> your > >>> patches. It's also better for you since you can gather more change re= quests. > >> > >> Further, I don't see an answer to Krzysztof's question of why the stall > >> time would not just be set to 16,000 ns in the driver, based on the > >> compatible. > >=20 > > Hi Conor, > >=20 > > Regarding that, I'm the one to blame since I was the one asking for the= property > > during internal review... The reason is that "spi-cs-inactive-delay-ns"= is > > already part of spi-peripheral-props.yaml which we already reference. S= o my > > question would be why not using it? > >=20 > > These devices are a bit sensitive regarding these timings. Not in devic= es > > supported by this driver but I already experienced having to set timing= s bigger > > than defined in the datasheet for spi to be reliable. this was true on = a RPI but > > might not be in another platform. > >=20 > > Hence having the flexibility to change the time in an already supported= property > > does sound good to me. If not set, we still use the default value based= on the > > compatible. Now, if you tell me "let's just add this if we really get t= he need > > for it", I get it but I also don't understand why not add it now... I don't object to having the property, it'd just be good for the commit message to have mentioned that the minimum time may not be sufficient for all configurations. Cheers, Conor. > I think it is okay to document specific SPI peripheral constraints in > each device. Just like we document sometimes SPI frequency. The v1 did > not explain this, but I see in this commit msg some rationale. >=20 > Best regards, > Krzysztof >=20 --AVu1vVpv5euJ77HU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTfepwAKCRB4tDGHoIJi 0m47AP9JuRzFY22arJqLQuWt5Tr58NL/3Hj7VXErM+HcZoe+/QD/Wrag8T3+WCAM dWFxFeGkzqJcrP3fPRV3nAAtLUNslg4= =u8oN -----END PGP SIGNATURE----- --AVu1vVpv5euJ77HU--