Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1866493lqg; Mon, 4 Mar 2024 06:19:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfUZdUqMAyByimzoNqL9zwqA2c1amhsbgCESmj7w3eNe0sQlEzxTfq/oOYgqBvxeSresX+oaYoJ5R6EqXsRqjolo0iNZsUVT++oR4Haw== X-Google-Smtp-Source: AGHT+IE9/pqhia2QILfE2HpVE2kTPnTEh8Y/lb0IJG636T0zcb02Tl/Q3hjT6WwWJJb4lj6LtbO5 X-Received: by 2002:a17:90a:f182:b0:29a:9a44:698b with SMTP id bv2-20020a17090af18200b0029a9a44698bmr5885157pjb.19.1709561989544; Mon, 04 Mar 2024 06:19:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709561989; cv=pass; d=google.com; s=arc-20160816; b=qgWQaWeZzQjkqKnZh5xUMIgt0aWAR3bt4r+4dMW1Tkq8jmfER56YqfCXS6Brvau8Iq bC+YelDRVJvRzvMswHxrA4T/NKM4LzQrBD3NdPbOCPa8PljcOsH6ZGqz0nBvclCs8t6g WOLAyYbUMaXCWItAFZwzx3oDzc+A6N3coFQIGAULKaNg0xFuUm6oRTHIpMs0C7atjZqS zhS51O8efno2/e03ycZCPRp2Rfaro611b+Ch0lqYPfbZjfTeefJ3ruUp46S92oeUbdrW pDfrEzWCO6ymKXIjD3YWofhnDaLEnVI2LBYAeMwXFU67yTNnS9ROc9lvG86dDhr1b08I J+6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mjk6IxkjTNQz+XwYVdC98kqYwm177ZXQ3W3FhTiPG30=; fh=1q6TAyv4+uvoD05zXfUVZypl5VRTDyuHf/QdNJKZINs=; b=dfbDiEs01Jp6l50HAdnarQLq62i1wmOfesuYfXUA8au8cMRjBht0p081BL91BhgZGJ qtUgWhCVH7Ozb0wa3gNQ1m7ngBLv4IlN5WnjXXbh8KHGc2ZlqLXRJtisNtvMb44NpqlB RGliNXmqL93gpAJ3tKqsqrfa2yyfld0WtRemYcE7LdJ+2V1jxguRnAvT6wWcpizCkC48 HaqLPU0GJXghug7ZqYT25PyxxQr+zlotLb6GQ8zBl00Lbd7zF93/RynNdKvoUZ9F9p4V jq4bWQNnVkSbCs2oYb2P5RehDFSbvB535wAy1hNq1rox0fH0cCUepTLRCBomFlLSNR+S yehQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9S+MQp1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h21-20020a17090ac39500b0029aab2b370asi10520025pjt.168.2024.03.04.06.19.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 06:19:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9S+MQp1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90690-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 82666B26E94 for ; Mon, 4 Mar 2024 13:56:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DFEB3F9DA; Mon, 4 Mar 2024 13:55:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o9S+MQp1" 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 8C94E33CF; Mon, 4 Mar 2024 13:55:47 +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=1709560547; cv=none; b=Y3qWEE9D9fI+MROu1f9KiIEw508oTGmDqL6qRppBkyz5HholvjJnNGDq74fdsccguR5f3I9qvaL1s38sDT20PcOpG2yfg59vtAGwTmdw4jpfkpl7pF5DOSm4gsClBMuNFrPt546KeRxSeAfoPD29lORUfYwu+pf/1jmMMo+Stxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709560547; c=relaxed/simple; bh=M65u/Bkh6ZmhHusXFXrbiVOO75W05EtI/6MYBPjQTH0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oNQwygqx6ZtRu9hmEMa6Ev1r3QmmRCTqrpXyR6DBTMvhEV2EFU+UFaHR62pRmGG8XBCftw5bDGHIUayYaJasO+q35Bg3poFKEoNnDT3H7odayo2ql7UH3+DeBzxIhkhk+9+NqH1sYVuxJHAL1SJLny4b7lZCEQb5reqy1qQfwk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o9S+MQp1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 433EEC433B1; Mon, 4 Mar 2024 13:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709560547; bh=M65u/Bkh6ZmhHusXFXrbiVOO75W05EtI/6MYBPjQTH0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9S+MQp153uTYwq1SOWKQxG9XeP4hdEE4JH/PEBX6M4kUzitYz3d44cF74PlLlYzg OpHwMcCNmCyjVlTPeI6LlcQFkXvzss+GyaxJBqhpffL8YPkRWbj+uvmfpfnNovmFOQ VPqaifkcZTI3Z5vs75y+7z9L9VM0fLdlaaic4ewi2P5dK6mVUErYyl6tXBLMLBd2sK 3MGZB29WsKmh14xpBHOmFCcllwAQR+4h9S+K4j+JFufUHs9SKkb63o/ArmJA5ftmnK 6baGsxYH5lDdxCpC2tiMeeis6TnRzVLVfxrm3O9W04AY9EOYyEKr+cEGabBRF3ld/i BbXpPvOdHZnUQ== Date: Mon, 4 Mar 2024 14:55:43 +0100 From: Andi Shyti To: =?utf-8?B?VGjDqW8=?= Lebrun Cc: Linus Walleij , 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 07/11] i2c: nomadik: replace jiffies by ktime for FIFO flushing timeout Message-ID: References: <20240229-mbly-i2c-v2-0-b32ed18c098c@bootlin.com> <20240229-mbly-i2c-v2-7-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: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240229-mbly-i2c-v2-7-b32ed18c098c@bootlin.com> Hi Theo, On Thu, Feb 29, 2024 at 07:10:55PM +0100, Th?o Lebrun wrote: > The FIFO flush function uses a jiffies amount to detect timeouts as the > flushing is async. Replace with ktime to get more accurate precision > and support short timeouts. > > Reviewed-by: Linus Walleij > Signed-off-by: Th?o Lebrun Reviewed-by: Andi Shyti Thanks, Andi