Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1899525rda; Tue, 24 Oct 2023 06:49:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEX1eyyPsi17ETSRFhzQsCzAPIg/zr/x3b4FOnM3t3F+DKpssD+4+HBBDY3wgqD29Psz2/r X-Received: by 2002:a05:6a00:150d:b0:6bc:ce7a:6f39 with SMTP id q13-20020a056a00150d00b006bcce7a6f39mr10983678pfu.32.1698155362191; Tue, 24 Oct 2023 06:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698155362; cv=none; d=google.com; s=arc-20160816; b=UIb8PTRkIE848dHQr8DT3QG0U62ZGD/dgRAzOCi5ICv0XXkURp9TEioWBQpByO3S3+ tfhxRKcJ/6Mgx61QXiP4WrNplwyp4GiTzkvvJ/u5p3/ovf4kly/GNfd3o8eWStHSh1a2 bXlEHnazp+oo7KFBhuFUtnF+iET15ZNZAc7HCUahCxDgWiIMn28h+iE4c8mpMBUhrYnQ fAy8VxESxeWNg0qUmkekE03I0CeRPsEhPMM5joy8emzPRUsxcsDoi+uksujbqIrkNFtg lBK+DVYSnwDkxLTS6doiSc4Zgzj6KDx93NqQzqUvyNxrcDvrtH3l6MnxQ+5IfGcpIMNR +mCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=wvhpCK3frheCthRrpOgh0zrl+ct+ClP+4XcisWHapjk=; fh=dOHnpqXuomrWCZgK8R2JipJgSfErBlQSs8BpELLvb8E=; b=L0VbIQvQFwg659Zkgy3VA4YnM1ty3nU1jRDNfIz+ktIa5zjM1mmlbOHYrymp4kL7uO I9TjvRWKNN28JadjSbGJjY/FIBhI2tiQN1UcTON/re0xp5xC7wNDMlzeycNVYMiy2LhW KUIeJztuHpokOefCijr2MS8zNJPw/gC69quEi9MAjNwmbfQVCfgdNjflO9tnSviaB4B9 BIJ2CPjVLb37aakHUKpMSQ7m7RuYvqZ8c7eIxTfvrhMxV77BIyTDL+B5JABnUcjXG2my GbDB1qSfAePkSkWswqvs9Nvyc/xv3u2mWa9ASVvOTLjjPgiu0iF2VlmMPU/g5onEgsG6 OPmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TpKRsUxl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u21-20020a056a00125500b0068e4704fd5bsi8635271pfi.346.2023.10.24.06.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TpKRsUxl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D620B8031AC0; Tue, 24 Oct 2023 06:49:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234680AbjJXNtI (ORCPT + 99 others); Tue, 24 Oct 2023 09:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343571AbjJXNsW (ORCPT ); Tue, 24 Oct 2023 09:48:22 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB5419AD for ; Tue, 24 Oct 2023 06:47:20 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32dd70c5401so3067153f8f.0 for ; Tue, 24 Oct 2023 06:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698155239; x=1698760039; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wvhpCK3frheCthRrpOgh0zrl+ct+ClP+4XcisWHapjk=; b=TpKRsUxltXjHqYx5IKnhJM4qe7cLJQkF5InzYtsuAi8CIOlMJ7uIIwjWTSNZHCZkZH +TtuuDl7rGeuE3vl93xIsS/VGIGnP6Z3YCfNXJYQMDcF5WpMAnrVjK9E2nhaxv6uF2i5 CzxmpwGI2jTbjfwupbr0xQup/lO+sng17mQaiBTWakiYwbZnXygI1gA26stGtPJC3YSk Kecf78A+iuL/kN7rdlI2SoVpJrOCnE4wEnkkXFKxnG2cCH2Ftp3Y/lBUw27BPh/eGa53 rYyB6PORjTKk3pIZB6udvYAQobAHdpGcdIyfFmWYxLV5Hpd0kUTPjzh+DR7ZzbcilyLz YJdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698155239; x=1698760039; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wvhpCK3frheCthRrpOgh0zrl+ct+ClP+4XcisWHapjk=; b=upnaIeo3u42qV+QWD+dBFJ/dnqk17wpvR52/KbJXQs0572MO3SrebQpHLEkMenRhkg WAjSNfPHsHJf0R++lE9bi573aBiUEZG1mDs0inFo9pw80NOg4glV2JG3LKgd0fKxKDkn Er1N8AgSzpUwPoiJxhwQ8bbJD71dgtDd/1CJbZIsc92PHW35EdXAAuodKXS0r9GlJTNd D+fBN11IvjC1ogCciXzXP8pIYKi/krd+XMdubEDyq0rpChEqQOzN8/M5m61LTq9izNFX Rk3Q6vIgQZUdFM00siitur7xTt8pHFs5p1+VNuAG7Tno3TXEVTBxss9+C5RWVRVLsrG8 R3lQ== X-Gm-Message-State: AOJu0Yw3oQtJnnLW4Sack3n/hdzdxILCxk/Z29IEm3IsCpoi6Olezcuu kj3U9WFAFNtSsyWdp1V6Nnx4F66CsVW5QprhOQ4= X-Received: by 2002:a5d:5b1f:0:b0:32d:7615:372b with SMTP id bx31-20020a5d5b1f000000b0032d7615372bmr12731797wrb.12.1698155238858; Tue, 24 Oct 2023 06:47:18 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id y10-20020a5d470a000000b0032d9efeccd8sm9975318wrq.51.2023.10.24.06.47.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Oct 2023 06:47:18 -0700 (PDT) Message-ID: <8391fb67-e575-49e6-9857-806cb85e9e59@linaro.org> Date: Tue, 24 Oct 2023 15:47:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] dt-bindings: adis16460: Add 'spi-cs-inactive-delay-ns' property Content-Language: en-US To: =?UTF-8?Q?Nuno_S=C3=A1?= , Conor Dooley Cc: 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 References: <20231023140534.704312-1-ramona.gradinariu@analog.com> <20231023140534.704312-4-ramona.gradinariu@analog.com> <20231023-repost-coma-2f67ea8b95af@spud> <5c600a6db6173a56251302da8d2f438435959bd2.camel@gmail.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473E8ZFhXfr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Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 06:49:19 -0700 (PDT) On 24/10/2023 08:53, Nuno Sá 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á 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: >>>>  - added default value >>>>  - updated description >>>>  - updated commit message >>>>  .../devicetree/bindings/iio/imu/adi,adis16460.yaml          | 6 ++++++ >>>>  1 file changed, 6 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml >>>> 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: >>>> >>>>    spi-cpol: true >>>> >>>> +  spi-cs-inactive-delay-ns: >>>> +    minimum: 16000 >>>> +    default: 16000 >>>> +    description: >>>> +      Indicates the stall time between consecutive SPI transactions. >>>> + >>> >>> You should drop the description... >>> >>> Also, give more time before posting a v2 so others get a chance to review >>> your >>> patches. It's also better for you since you can gather more change requests. >> >> 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. > > Hi Conor, > > 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. So my > question would be why not using it? > > These devices are a bit sensitive regarding these timings. Not in devices > supported by this driver but I already experienced having to set timings bigger > than defined in the datasheet for spi to be reliable. this was true on a RPI but > might not be in another platform. > > 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 the need > for it", I get it but I also don't understand why not add it now... > 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. Best regards, Krzysztof