Message ID | 20240229105810.29220-6-wsa+renesas@sang-engineering.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp311077dyb; Thu, 29 Feb 2024 02:59:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5s7PH1i9RLZAV7+Unhqviru0odJK+3npe+Vg1LDmI82H1JjWbRNfraiJmT1MNbAIjFAACo6b34MJsgHDXgJVvoahx7g== X-Google-Smtp-Source: AGHT+IGU25kTJJMpA36pde7az5ip6XXyTOrAHK17D0lO94wEOcOjlqLWZX2E3I5NcNIV0KEIFkHN X-Received: by 2002:a05:6808:209a:b0:3c1:54ac:ab80 with SMTP id s26-20020a056808209a00b003c154acab80mr1849010oiw.47.1709204378228; Thu, 29 Feb 2024 02:59:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709204378; cv=pass; d=google.com; s=arc-20160816; b=QGnpZKgoSMG6penRlJxchHrEeD1VHIWz5rfWYCjW+8InHJflKduHKHi1Q+wZFNaOPv kq4lF9I7/7v5yamY/h05Z3HBiEYIsgPm2zY6HV6ZOfqYC+jmXNLf1ZaG+S7vHLcTfa/g goWmND0WJEVsbTT/q8IMOLtWA36233McBvZhnm82vLJKBKJQxRnAaErBRnpKa6Wzg/08 4GNjFpVG6Y7ym1uL2e3xr9DpiR1XaYP0EkGK1DoGsp3R1vDp8PIjgQhEBYarO+9x/8vk 11df/aLVVcUdz4D+qOJkNp5u6FEQBpQg7NEFQ4DzJcDER0pqi1m7aHpwm7IhoIVzboFk wKJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=z37VTRXr0vDwhzB8Sw2WVBzeh5raFPoJsqa47G+4y4U=; fh=2NckBe7Io7+dz0dsmbGqcY7/gfPamgt98prdd76Shm8=; b=FK6vvVKnBHFAE+KhlN7TJ65LvDmin563QSqoTW0KbLiNA8hflK7M9wBXQN9bbFFCtR DrVDcG0QnKSANXtoKuHeluu6XAH5sMkCjKg6RGhS8Fi043l0vkIkbc2NmogWT/oXN6Wy 7u0gWQntszp8rdi1dVke+ZwYlTvXY2BS7umPCXfpOyKEDatCFVUDTojpC2totZQQKVHk YeeoA7m6VP00ctjdIcrA/XzTww1ncQCOfdfnDhLbapKeKirdp5mJazDwqcb1hXmySUPw NFeOxiGUOzfqzHHYtzOxtmiGfWIps+gmCIBa4Dgy0sNYxdbvbIY4bfDh06NREK4imfLV jrQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=TU+poaOL; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y184-20020a6364c1000000b005dc97ac8afcsi1179776pgb.125.2024.02.29.02.59.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 02:59:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=TU+poaOL; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86596-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DA4CB28999A for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 10:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC8FB7C0B4; Thu, 29 Feb 2024 10:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="TU+poaOL" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C1DD7A71D for <linux-kernel@vger.kernel.org>; Thu, 29 Feb 2024 10:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709204327; cv=none; b=k5sw2XAp3W8qGoYRMfAKsFfODRa6simsENpIE45fhuFKtGrR5u5LT+FEp0J/gVGYbOYpk59RvAYFnbHKh90Jsjv1KHwOGvv1CxtY1z7afo0Ib3nM4NpgkqdbyFAIhGMq7QX2K4ZfcLW6hGmPhrmcED3PIbz1cSnI1KUPs2MswHo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709204327; c=relaxed/simple; bh=ypB18cvDIlCIsSmF6zKYeaKlmXg3SfaECOqvrBqx9ik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P1xoMq6DCMFUIoEIt3iLA6BvlPfkHA8JMct3GPY8vfsPk+qozodXAb4JS8wivQR55PvPRmxJuKK0KpE1B3sSfcvmB4tow1gk6HnPfz0/pIVnAT8qRXWlut1LUBYMuk1LwXixznisQMoHbqWHMmaQXRTPVynJjPNmp1kmHnJ3I0E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=TU+poaOL; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=z37VTRXr0vDwhzB8Sw2WVBzeh5raFPoJsqa47G+4y4U=; b=TU+poa OLBhE0Ghy6pW+xA8Q5AuN1hvI7aWq6Tw6UVDY1QSw6hiK2CdQW4J5/rCV8SVXtas ePZp4JE3c7jwM2NkNokAVraIj2ax1T24rsoSimy0Mvj2OPkODLf8pwVmsCW6Mu8N 64fYj8Yak6eygKp3pGY5dgbknJP0JtCkc0HE2eBkuj6bqNoQYKqczqjyLNe+NxPX GB6EtuivnxAyQJ19sS44GK14k6GLGyZJ3h4dwfbVeNRGVgIJ8rc5zVzc4RZ+Glez 2XZTSw1sBZVc+K1mzkkw+2puv0GkFeUrddNZYmzA4lOABAaMS6IDaKb3wRpXpM4P 4vSea2+XbK6UAwcQ== Received: (qmail 2278007 invoked from network); 29 Feb 2024 11:58:41 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 29 Feb 2024 11:58:41 +0100 X-UD-Smtp-Session: l3s3148p1@chpmJIMSrQ9tKPFZ From: Wolfram Sang <wsa+renesas@sang-engineering.com> To: linux-renesas-soc@vger.kernel.org Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>, Rob Herring <robh+dt@kernel.org>, Wolfram Sang <wsa+renesas@sang-engineering.com>, Andi Shyti <andi.shyti@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFT 1/3] dt-bindings: i2c: mpc: use proper binding for transfer timeouts Date: Thu, 29 Feb 2024 11:58:11 +0100 Message-ID: <20240229105810.29220-6-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229105810.29220-5-wsa+renesas@sang-engineering.com> References: <20240229105810.29220-5-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792230690072774182 X-GMAIL-MSGID: 1792230690072774182 |
Series |
i2c: mpc: use proper binding for transfer timeouts
|
|
Commit Message
Wolfram Sang
Feb. 29, 2024, 10:58 a.m. UTC
"i2c-scl-clk-low-timeout-us" has flaws in itself and the usage here is
all wrong. The driver doesn't use it as a maximum time for clock
stretching but the maximum time for a total transfer. We already have
a binding for the latter. Convert the wrong binding from examples.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Documentation/devicetree/bindings/i2c/i2c-mpc.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 29 Feb 2024 11:58:11 +0100, Wolfram Sang wrote: > "i2c-scl-clk-low-timeout-us" has flaws in itself and the usage here is > all wrong. The driver doesn't use it as a maximum time for clock > stretching but the maximum time for a total transfer. We already have > a binding for the latter. Convert the wrong binding from examples. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Documentation/devicetree/bindings/i2c/i2c-mpc.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Rob Herring <robh@kernel.org>
Hi, On Thu, Feb 29, 2024 at 11:58:11AM +0100, Wolfram Sang wrote: > "i2c-scl-clk-low-timeout-us" has flaws in itself and the usage here is > all wrong. The driver doesn't use it as a maximum time for clock > stretching but the maximum time for a total transfer. We already have > a binding for the latter. Convert the wrong binding from examples. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Documentation/devicetree/bindings/i2c/i2c-mpc.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml b/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml > index 70fb69b923c4..b1d7d14c0be4 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml > +++ b/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml > @@ -96,6 +96,6 @@ examples: > interrupts = <43 2>; > interrupt-parent = <&mpic>; > clock-frequency = <400000>; > - i2c-scl-clk-low-timeout-us = <10000>; > + i2c-transfer-timeout-us = <10000>; Chris, can you please give it an ack? The whole series is coherent to this change. Andi
> Chris, can you please give it an ack?
He did on the coverletter for the whole series? Or did I overlook
something?
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml b/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml index 70fb69b923c4..b1d7d14c0be4 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mpc.yaml @@ -96,6 +96,6 @@ examples: interrupts = <43 2>; interrupt-parent = <&mpic>; clock-frequency = <400000>; - i2c-scl-clk-low-timeout-us = <10000>; + i2c-transfer-timeout-us = <10000>; }; ...