Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1180500rdb; Mon, 19 Feb 2024 06:53:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0kkqakQkDES2ctqeUWLhMQyx87rS8RGGUNFjVUsNQl88IRLemDSihm6pUWRDOBrImOQXRUCHVPcQ17q/nvdPvnj496puL2oi03Vy7rQ== X-Google-Smtp-Source: AGHT+IGsq1u12SNdoW4oP/f3aT5AfHenpojZRaEUeclTWX5kL0WA/OPasOJBRzMfXsMvst2V2uHE X-Received: by 2002:a92:ce03:0:b0:364:ff2d:8989 with SMTP id b3-20020a92ce03000000b00364ff2d8989mr9690313ilo.31.1708354417857; Mon, 19 Feb 2024 06:53:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708354417; cv=pass; d=google.com; s=arc-20160816; b=M9KUvTL0D8iT3vJBxwWu7CFXZLJgnk9kK7SmT1lj0jM/Y7p+yllJN7K7JpopqAQw3T N0IAZVHuPFDyRnpTdpASzNK9xLpt3lauqzS4xLisFXmtDBd8hNj0FF+B/a3MO1+4VFFS y2eve829bLWf9VCPHegDRrybd9qnfG+/LPbWd3//+Tzq9mA58hclhStMdsxEPT8e2Bfk mtOBEUCiK3v6H2MHLeCvtbLxYM00Z03LeJQOwBFsBLF+iU5HW/AdsokM36rSB3qUZko5 09EwdSKGkJZuUSjD5YKoUII4I1YmZTQ5e2ZINuMEOctftOxldUo/lpymA+JSlSMg0vut GrAw== 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=zMctZEwS487clYI69wTjBZbHwKLOIJfqLcoi9P7jP1k=; fh=IxYZBcnVAhFDWa+Rnk7hlGpmNODXRk4ft8MJatQBDaA=; b=DEwkAjndxQGfnr9JD+//bYnidhkLCA68B4WlnceSYT4uQrRx/jkOEqkx0kB7thS1KM 9H4DdlyXLWwSu39/QZu95l+WFHEYWNbUTJjAGo/qAm5GWi9OR+OVmSz++7p61/7pS6/q 7ERJstaZ5T/sW7eFVzqS3YVOy+bBuSpzXI7bS3X0RJFm4+2/ZQTHPmAjpM9tmtX8i2H/ vV2SbSaJ+2GZJWEGTVw5ggj8mz6gO7+EnF0kSlzqoz5XV9mXUjAN093NneJqdtiFCvm8 Og1mUwKIP3wcuh737ITrR1WKPe+5mIHqnZJtxLGmO8ZInT6/TIYT/P5/p7LkHwPWeNtk Tnyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DqDohTbf; 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-71514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a65-20020a639044000000b005dc8372020esi4546258pge.580.2024.02.19.06.53.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:53:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DqDohTbf; 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-71514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71514-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8AFE8283A9B for ; Mon, 19 Feb 2024 14:53:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E90B837704; Mon, 19 Feb 2024 14:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DqDohTbf" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 9CE062EB10 for ; Mon, 19 Feb 2024 14:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354409; cv=none; b=O59Aj8K2ApqFbBBlXSlS1/wukJMiFFVFHFGnPzrjkE+qhRXi5M/ed679WGK2JT9GkVmtX6KMUIt6LGMqPga+UxfEyRyaA2nyc+jp2GrVePRx+ehfrLdZcOZKuz9KrTfoP4eAgMDTy3YkGidZuXyx1ZImNdv+QLWBxG5K+2QE73M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354409; c=relaxed/simple; bh=zMctZEwS487clYI69wTjBZbHwKLOIJfqLcoi9P7jP1k=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lZ28vgWCJwkHq/Wd+iPkBJ2rnqY7PDUqWBTJou2sb+Q/kiT3s1ZQNEGB94mefsAGv/VEvSocO6/Zb0g8aNV0sMbbAdz5S52bQcLphromF8bETu+sYuiTOhk+rRCDUCxapVvAp7LVtMulRU4TxTGIZ+ZyQQ6z80x2zAilWX3DVFw= 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=DqDohTbf; arc=none smtp.client-ip=209.85.219.174 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-f174.google.com with SMTP id 3f1490d57ef6-dcc80d6004bso4441285276.0 for ; Mon, 19 Feb 2024 06:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708354406; x=1708959206; 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=zMctZEwS487clYI69wTjBZbHwKLOIJfqLcoi9P7jP1k=; b=DqDohTbfO9dq3v2fymtmMv0A7OPJ2Mnc1HXqKmScqdsCV1QikH7VM3HAmsuFcdtZA2 bTJvPadbXostf5R1og7+VmVurwlfdPFR0ynt51b9nSrdqRPUGAxOlVMAPbQgOMu3DeLG NtoSDCu8jjCZkkpf4A4b42qMzP4gIoPAzBKge5G4laxVAo3jO+Y341Yc+OAcr2e1/iUa jTAOXC9wNzXdK+ZhYa3ihcwv9aFJwBBJ1aw33sKvOe6k9qyNWliCFfaN158fWqxku7b3 8RbmXke7NnQsEymwBK+WxeBgo+4qIU4ltDvAsVORbL5u2FJ953mkF05FrckueNRuxoHO r75g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708354406; x=1708959206; 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=zMctZEwS487clYI69wTjBZbHwKLOIJfqLcoi9P7jP1k=; b=URbIV9QqE0zKDogBrukuiA+sLkX5Lv4AV36ohVPthiuUyeARRAgjxkyAW8328+v4Ai pFwaZDpAZW3ajoqJv2VZkwR4WTNgU95N16fljiYcjtSocIC0qG4OXKlUzVQfUlLfgR1/ sEfAb/PMzlDNb+wmaKAiKsPCtERIT4xif6XJv7Et87tmuH6sfqksczCD1LJg8aVDXJds iIK3kOfNSNLG/jopmTyJoL/5W1rVmUgSlBn8C0sizM3rfSsABDwR11F2eVYNN6fQQxZW sW/HjIS2CLtEnriDxStuBDcJ/+x311A70bedhn1V7llJ7pkRiuLU83iYSIKS5lhGO/zL ljAA== X-Forwarded-Encrypted: i=1; AJvYcCVDOaqch9xcyJTGySX7MSCdIyW/oQZkKjUZNYXFGRdq23jA4nBMOGuBe6uUBYm0Jf9W4PkCBq/2pxuXl8PDclZEIXsI939lF82BwAkg X-Gm-Message-State: AOJu0YyQqXpFaA8z1am84YNabXT2yqYlBvMTC6ro6DeRxPo1qsV3kJRB yXy7Uml3emyq1RpARiM2KYnQm9LvJM2WBkr5M6k5zQ/tN0PlYYGViyR1F6kJuo5oYa5Tkgu7Sa5 wlJG0tw7h+W1WJpN/6uv5d/szhT9SNziulsHLRA== X-Received: by 2002:a05:6902:2405:b0:dc7:47b7:9053 with SMTP id dr5-20020a056902240500b00dc747b79053mr12979596ybb.15.1708354406642; Mon, 19 Feb 2024 06:53:26 -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: From: Linus Walleij Date: Mon, 19 Feb 2024 15:53:15 +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 Mon, Feb 19, 2024 at 3:38=E2=80=AFPM Th=C3=A9o Lebrun wrote: > Somewhat related to this patch: while writing it, I noticed the total > timeout of flush_i2c_fifo() is 10 times the timeout. Without this > series, this means 10*200ms of busywaiting! > > If you have an opinion on a more sensible option for this I could add a > patch to my V2. I don't know enough to pick a sensible value. > > I'm unsure if it makes sense that the timeout of flush_i2c_fifo() is a > multiple of the transfer timeout. Does it make sense that those two > timeouts are correlated? I have a *vague* memory of the timeouts for flushing needing to be longer but I might be mistaken. This is probably a Srinidhi or even Sachin questio= n... Sadly I don't have their current mail addresses. Yours, Linus Walleij