Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1722350lqg; Mon, 4 Mar 2024 01:29:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIPPf00rOhFiapdokmQ+ZZXXEDo8TevMo1H9GA0HTyDVxUEsevOQ+Dz8AzIMmAcE1ahwxClGDDJK1KV/exiZ9i44TWEu737lWWy/z4Qg== X-Google-Smtp-Source: AGHT+IEvU31bpgpahh4E/6AjJdxqE4bcxdmLzLPHx6LaRV1TpykYV7uLfGsEKckzBU5lF0mj742i X-Received: by 2002:ad4:5341:0:b0:68f:3c39:c63e with SMTP id v1-20020ad45341000000b0068f3c39c63emr8634322qvs.6.1709544540584; Mon, 04 Mar 2024 01:29:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709544540; cv=pass; d=google.com; s=arc-20160816; b=GYiRhNnkFTd0nKGl+wZ0QtuxLu4D2/opgZEP/NXdUCgyONymXa8vN6pcX8cXWP7Sbo MeeOmte9Mir+JHnF2O7Cz0CAmh5h59DB7iG2wSId1+YkcQ1Azqh4Zet3RcATvyKPK4Rg gpbd35jsc6i9oC0jFhQMvR4vmfaiHn2AW9SuUbtqu8iCjnHcYJrbziyR2P26UcR0/+O1 NiA/qmNeJZV8MC0VlYM30UEl2fixJG/7oPeCX2agZDIBeOWGovuDwk21JoU9zKHPElah EOScq5u+bg/cd/gzvYIN+rV7DVnahmNVYLG5b7cM6MfxKIhLmu+HOT/Hpyt8VTQoKZwz o9vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=f008UATUrI7sibR/TkxlbuJzutLyjgIg+maDCRMxPPk=; fh=WFBbuB0+4EoISoNLKdVxh9iPtkL4XbOGRzOjhABSLNU=; b=FPntXY8s24GQyAD8xEbkN8vTw7K+3D9XfAPGFIBmlJzwhvuz+MnqsoAjsNmrZ2kaHi IqPN5Zx6Q/9DMkJVnuf+eOwZfBZDPdb8YIrEiSw7nrBZlmyBYUJkkg9M7RcXQ0X+J2Uk Cf+MXKR97YViAXvZi7VBVCVD2QXmzGyzoEIik7Dnj1x9rKPyFffv35QSy5gWmb2k+Cw5 4KCi24jwi3LzFyl3U2ZBULd+PNrvHz2oL4IYASuLGDp73jTZBQFV3BpDocBt/pL4oaDV VgoPU43+VsXOV2kQ5jHf1dk4TCO4Kq34bkhTI8eCxKD5ibMtMb8rLYOTqCN9V+B/BH/0 q8vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/QbL91x"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jm12-20020ad45ecc000000b0068f305eed02si9320141qvb.67.2024.03.04.01.29.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:29:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/QbL91x"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 52C0E1C219FB for ; Mon, 4 Mar 2024 09:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2BC8364C2; Mon, 4 Mar 2024 09:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f/QbL91x" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 084CE2BD1C; Mon, 4 Mar 2024 09:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709544342; cv=none; b=UGSp1l22twVH5IjChWB5mzkr3Au2ABYI542+86CHHaJlflI9llxk9yxDvl/6QgkwrIq8cpbPzJQugWYlxhDdPlXdqLowc/VHJrvzwkU2ZeC7qCg/ZITdyL9o3mVk+gGSgFsMkCSCaOB4Wm4kDz0fy7sMG1pJ3VfM/b4vNFmhngQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709544342; c=relaxed/simple; bh=f008UATUrI7sibR/TkxlbuJzutLyjgIg+maDCRMxPPk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VWr60VnxNcvzTexaNEltMosA0BSVX8OWhmLsb5xVR+W6l4tiGhdGfwCe9s2wc+6mDkTbEkBmi6cAjKuELibHb+cpTOuS7p4BIp5QZrOBxqD5z68ta0f61zZuJtPbsSxhPtxIsl2I0DRFTed2MCr88eWgfqhVHyetyEoKH0PsLrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f/QbL91x; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FD03C433F1; Mon, 4 Mar 2024 09:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709544341; bh=f008UATUrI7sibR/TkxlbuJzutLyjgIg+maDCRMxPPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f/QbL91xIktoRsBhcjzTgpJjmyx5gE3520T97WhOSGzhK83xV8YVx8KW6TXir6j0v 8Lrywzv7U07XO1ohEGh4bHL4ieLoGNLIzTYACXgXCDghAs4h9CecSSTzKu2871NBzZ sm9LgmLVPbdC9Yly/bsytQc8yPpNdyubzIVVeOSHuoTY1lzQuAbyiOKKxzWfeRllLb KmRp23N4LOtU1Eke5dg4HXWVK3JCe2NxXMA0CoZRP1nH/nUPwzfDTIn2AM04Rf/17w UjBPpUi2+s6H9OzFunp/qSQRTa0RNhfnRYNvdrVgj2MkSwGk2PHMvLllJ+byfCLI1Z QKZjXg+pXyvxw== Date: Mon, 4 Mar 2024 10:25:38 +0100 From: Wolfram Sang To: =?utf-8?B?VGjDqW8=?= Lebrun Cc: Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH v2 08/11] i2c: nomadik: fetch i2c-transfer-timeout-us property from devicetree Message-ID: Mail-Followup-To: Wolfram Sang , =?utf-8?B?VGjDqW8=?= Lebrun , Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk References: <20240229-mbly-i2c-v2-0-b32ed18c098c@bootlin.com> <20240229-mbly-i2c-v2-8-b32ed18c098c@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rOTSJM5aE4jTNjnX" Content-Disposition: inline In-Reply-To: <20240229-mbly-i2c-v2-8-b32ed18c098c@bootlin.com> --rOTSJM5aE4jTNjnX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 29, 2024 at 07:10:56PM +0100, Th=C3=A9o Lebrun wrote: > Allow overriding the default timeout value (200ms) from devicetree, > using the generic i2c-transfer-timeout-us property. >=20 > The i2c_adapter->timeout field is an unaccurate jiffies amount; > i2c-nomadik uses hrtimers for timeouts below one jiffy. >=20 > Signed-off-by: Th=C3=A9o Lebrun I agree to get the DT property here in the driver. We may later refactor it to handle it in the I2C core. Syncing this new property with the existing 'adapter->timeout' will be a tad annoying, though. But I guess the shorter timeouts are a desired feature these days... Reviewed-by: Wolfram Sang --rOTSJM5aE4jTNjnX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXlk5IACgkQFA3kzBSg KbaRSxAAmSt/pzGp5XIF3h7uIsHzvGvEGXZg6PHnvH2DulayTo3u3cBgnGDud+ZP jHg/FqfwO2Lb6818/uloRuAuoi61YmlxoBRKLwJHUbz2TBGjI5rRIpVLRq8/BVg5 95uVU1/MetVec/Kyrtq8S3DpQhbD8BrzAQrui7RW/VBrr+jIUH9wOevEPWGG439V 35a7yjmQGqV7b4sWgZ3iaqhq7bya6VvCs9UMP7y+N1PVgSfRKrxlR3lIFAxujREV Ed4yYySDk7A0Hd+KJ/xyUnAJAuzmo8K1cqishU+4oFzvBUJMmgHhXTzDNw2TJtRR lzXhg/Pc9Uu5ay4qN1Tec7c9+VU/AUyw82UW3/rR64ubxc8x+PCfvxX2lCZNq+gL uCIydfzj+BoRJyGEipx62qxBzIDZUFYr46v8Xc+xxM6/QRxMtyK4tyHqjGRlHHBx 8GQNCeiYVSgGI64k+bTsWzcPnBDMJpo+ZI1GiSninEZuf3GDhuLNCfg+jhmz+FzK u2U05gyiV7D8PJuAOEadGOgpwOw1cyj84TEACKcch7yH1zwDO3kQmq2eaBV3NHpk hdGIOWuIImVEmb0CkAHRDq4xcA4ydluQvcrW8RNSBt1U1pD/n2ka//Xri+gIYVp/ 3UnUDoe1Zmz0x6h9xurqZ+ys2PplW047yo16PZ98qJsrtZB5jd4= =mCbo -----END PGP SIGNATURE----- --rOTSJM5aE4jTNjnX--