Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1163118rdb; Mon, 19 Feb 2024 06:21:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeY4DloiEOpfwtiI1rp05IjEEflwj7mak7QGX1ub/nMXyYFb5XayF+XnxCBIWlZk7LAUFNQJvC5nMXoxlaMn8KrPo9nW3muIDpXKbsCw== X-Google-Smtp-Source: AGHT+IErH+GVP1PUAJQqhlC+C7t8QozbTy8vnX68JyWRg1XJacv8Pn4bffa/FUgO7HWAM+dLWA8E X-Received: by 2002:a17:906:ca46:b0:a3e:9c7a:4ac2 with SMTP id jx6-20020a170906ca4600b00a3e9c7a4ac2mr2226671ejb.15.1708352511994; Mon, 19 Feb 2024 06:21:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708352511; cv=pass; d=google.com; s=arc-20160816; b=g0IISfK+HWpwl0/sbw9V373641ChlH7fLAwOnw4i4ducms3SS/gbPFW176MnF2PmkD 6iG8Y1bwSWG5WMpUn52CYobzUpe59IhfDLJCxc0dGdprdUACp2gkzu75blQee2IuYQSZ ADQ2zZgaa2uR+MGiFMYAM4fxFlDdt2r2uhtMZPA71VamQZvOW/swOnaPiQ8T4bb1xi6L 1m++pNa62sCHg+QNKWFpdrqgur4IWm6oOh+/+t3r6MTUIeBUAiV29eBnjTVahW6ndlpq qDZPOheMxFJfve2izKPYYZGgDfYa/SYuYIWjM4Ze5DIjax5EEIyhbikWY1ByNTk7lTRl 0UTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=SrwC0+4KeISVGwaFeZbt6eoTCX4pOFuHjyV4acTEdn8=; fh=jE8VfQwzi5mntNlTGLLbqhiXi9y54Nsfed9lnQkBWGs=; b=PRAZgv1FmmQlKlex2LjvRE/Sv1Q/dQG5g0zV2KQCepBAXoiX26QqH6HWmtGwNfyppN 6kXYHaHRNAOGIQaQDgMryBaMUyLcSWVVZbK7fHgLXeevpW34QXu4RJ6u33qpOjtxEwJk WptI8oEtaUrdCM6Rbxx25od8KgwMVcVhQywICyhzdetIhpAMYD2lQuJuNsCovK7edAy0 c7QAGSPNFWvJlgwwySS+BI0eBANRxd+yjGHc4xVYSL4PREr7TMxFZWnPC3Z1mwvBuzr5 +9by+uK8OWu6TdEeBNtGAFyU7JEwj78f/9TxWdRZXhR/dMpp17z6FcPLYtuhtwN+/8fX 7MAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tTKE/O3m"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o8-20020a17090608c800b00a3e0dc734e4si2427911eje.790.2024.02.19.06.21.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:21:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tTKE/O3m"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B59A51F261B3 for ; Mon, 19 Feb 2024 14:21:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D6FA376E1; Mon, 19 Feb 2024 14:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tTKE/O3m" Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADA5B36B17 for ; Mon, 19 Feb 2024 14:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708352501; cv=none; b=CzgaO9YKDMTct23nU3gKNLjvsRYvglAc+eyM8XjDXAmlsletYRpmoFjsGV11N01ofheGe7pcB8yxmdcDiDukUq07oi+tPUEqZF1EuaZIVsEma41bh2gqz4xjJZ5HZsM/wYVtmzCMfaDAawOVgvUbcc5Y4yR5kN46bmsAEZ5yJwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708352501; c=relaxed/simple; bh=SrwC0+4KeISVGwaFeZbt6eoTCX4pOFuHjyV4acTEdn8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pA63zjDLBKOokYdMGlI/j4avaBl32khdiFOuHFJennf7t1+DxUprxLf7z408LruJHUP8tcgmiRpvEZ/PFvFGIzeSxVepxgigavrkx6biVtDqF+bFdp6lEiPziShoiRQHoauaccULPy2SJWu4LbEEjfLDn8SAlzTZAb9U828DKfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tTKE/O3m; arc=none smtp.client-ip=209.85.219.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dbed179f0faso3751227276.1 for ; Mon, 19 Feb 2024 06:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352499; x=1708957299; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SrwC0+4KeISVGwaFeZbt6eoTCX4pOFuHjyV4acTEdn8=; b=tTKE/O3m1ig1JfmukMOVlcj0apK05F9sHBrjZZLTBULHI9BN2gazcHtXkSDnb6xCYd WfZ656EQgv0JCpsSGckqoKmDaJMUHfoavozMkgxR4JVU9gPGtr7UjW9XczgmCBuSUaUi 4A6zZ2WZ1xfI2Oug/shfdKmJAsXs+50ma4/m40nX90nbPq6GAE/BU/MehJF0xVTk+ogu BTPc/U5ip9whYC8BxpIVO7gqmQxmdkQyouo0+54+UwpXzmRYn6iGSqQHZ86J3w042Hws HxStEv/HeJe64OHL720Tk8A/P53E5xxkjXHvHAe+KM3+6HE7OVhxMMbFZi09wFGPYJfC 2RLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352499; x=1708957299; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SrwC0+4KeISVGwaFeZbt6eoTCX4pOFuHjyV4acTEdn8=; b=Gr4DtPV4TeTyLR3V4756J370UwlqLm3z7mREPQ9VVaB8p7Zevu04w3LOHRl7tOryaW GLQfY5jCqppvauxSqvj1I6Hl9iL6TLVByYZudHEyBLjjatTRxg/NUu+aYMa5hEVp7Nh0 Vs1FFoXVds2rSZTwBwMiUDlyprfUncsI7y1qYUo+gUz26mqWuxSygHdSObITLENXaL9Z SytqAJXr4B4WpTVv/sV8YehaOCLqDL1StTjBaMuINoyByqPayCx2lkFP5YjFN4B5+vHn 1OPq+eSPbfG00OZsBc2h/bmYLF7p5g3JN6Un6kaobVXheue9BXj8NfZNyER1G7UKdJdb /OUg== X-Forwarded-Encrypted: i=1; AJvYcCV9xXxitm3KebeZwFm0+tAH9x+MSQZIPonfkxWYA9ZD58PHNsmo/cSgQqfCSmCnSbuyC6DKbhSJ7hPTy157dk6+FrHvn2OwUUNV+3Fi X-Gm-Message-State: AOJu0Ywt7moosi4clsebGaNGbF2FDpAHxLLljOfCGRIonAuFxK9r6SzU PyVkq98Dyf/FKI8hEwfLSyizPwgAQr1+GAUDDSUftHWOa3SMMP8C6ifMOXWpNbBrONkYS0QGwPt mdLo6h3PfE+t3l+M2pfnmRw5q4LUdCU46hVIkBUTGyIP0XkZ1OCo= X-Received: by 2002:a25:838c:0:b0:dcc:fe98:368 with SMTP id t12-20020a25838c000000b00dccfe980368mr6937583ybk.19.1708352498795; Mon, 19 Feb 2024 06:21:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> <20240215-mbly-i2c-v1-8-19a336e91dca@bootlin.com> In-Reply-To: <20240215-mbly-i2c-v1-8-19a336e91dca@bootlin.com> From: Linus Walleij Date: Mon, 19 Feb 2024 15:21:27 +0100 Message-ID: Subject: Re: [PATCH 08/13] i2c: nomadik: replace jiffies by ktime for FIFO flushing timeout To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 15, 2024 at 5:52=E2=80=AFPM Th=C3=A9o 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. > > Signed-off-by: Th=C3=A9o Lebrun Excellent patch. Thanks. Reviewed-by: Linus Walleij Yours, Linus Walleij