Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1217935lqe; Mon, 8 Apr 2024 02:15:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4rua4DQOEzoeCpzW7etQ3Ovx5VUrQoVNLkcOEqHrlQOr/Tmt4FhL82hIwUYwGrAvHBOR/jax5NOfYYzrykoprr/USTMAT9w9gxMvUJA== X-Google-Smtp-Source: AGHT+IHsm5OVA3zt6rU1kuBQlI802reWmTLe8JWq4nxtU+9VUaik8+tXGUncqH7PnXkeHlFQavvi X-Received: by 2002:a17:906:ecb6:b0:a50:4ade:b414 with SMTP id qh22-20020a170906ecb600b00a504adeb414mr5818678ejb.3.1712567749551; Mon, 08 Apr 2024 02:15:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712567749; cv=pass; d=google.com; s=arc-20160816; b=Onb2G6rs2MeN0NSY3ej/FG8YPAzJbQyrTDIX/F3wrgSmbec0NYnighqAjoVuAPeQhj 4ii1qf06SDQO+TC4ZA9XQmCzoIa+9vbUhtRm32WO1pW7uptPL7D+29FEsP4cs436Tms+ kb7Fq7ffAMPVGcFDXrO3e5tecVY83YsGlUhEAdEgDv+mLYOVKgo4X4cA48Tdd22g1sIx +ThRQo78UU+3FIP0tPo/5I78brLGurXG0eanEXcupQ76/hBTl7NlN3U6gigmBCCBEIpF 0AdDOJ1Ws18yjVfvWbfTiNFLQnUMUHIbfXunPVExhGn3PVrIdL71TknvA5kgW4fqcrRq K9AQ== 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=B1xUGkiU6dmYPsBjCTtb6mRNv0nuvWzUMFCwA7SNs6U=; fh=ZrJdqQCSIZ1ejd1Jnbs+lO5rqeKlgirxtixIDlaOyhA=; b=GCiZu4KuRPxxvyRB8TLwJRpUMmXSKq4HLlVepK4j1dDkVZj9b5PXs9hJb5FlkhZh2M qXu7LOuVs3DvD+YMJbIRYeNrDOoiRaTQxEg7Omq1KnxFny1WR8E5AbwujnI9x/AW170s Ep3K5M+00jflShhWxtALlPvmNbljuo2hcUWsBuq6JCpQ2hrHhOlS5zSAzMzXY9nSFD1e wkY38p7ZkguwBG/eJOi5pxQQKBubnyeI/nSrQxmvaU6aIsVl/lNeMIXDJ7r6+70EmNL9 7EqtQ+hqHG7Pw3VXFGygP4gpT+iqReQ45hiAwCSEoQFzSzU2LCpS4QB4y+96q1Y/v1tB 22xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=D7b7JHh1; 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-135121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135121-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j18-20020a170906051200b00a4e47db064bsi3476550eja.141.2024.04.08.02.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135121-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=@sang-engineering.com header.s=k1 header.b=D7b7JHh1; 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-135121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135121-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4A6471F22CE7 for ; Mon, 8 Apr 2024 09:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13C8F4F1FA; Mon, 8 Apr 2024 09:14:29 +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="D7b7JHh1" 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 38DA44E1C8 for ; Mon, 8 Apr 2024 09:14:25 +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=1712567668; cv=none; b=Edgty0xOouPw//8C8Dzt65PqS6/GS+9L8YZPFURCdJH/vr3v40aBLfcRNViNfKtoQQxYnxy/QIX/wlczqxH3GMvH+BnzWQjW7RpmwPZ53tvIKqtbRKHcVLXQKvFRvChtN3Lal+fjByQBP3SrAD4aXCgmsfPbke1aoz2whCT2r7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567668; c=relaxed/simple; bh=z4CDEMFIMTjvOLif5sUmisJHGO9R4pf0qmsvsjOnpUs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CK/W+nuUnSncJFwTUqUpyhFyewkHOW78oM//WNEQWuNOhMT56T0Cla0EzGI02X08ttpemCO7BmBXxVlbtITSG5A0QC0dJMVeMs+ADbfuf+OfTNJ3swu1dwIOguoo1ouyWXDZ2ozVozPxmcnEKcMnJxFQEEE1PjK67Vi4F1mhzgA= 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=D7b7JHh1; 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=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=B1xU GkiU6dmYPsBjCTtb6mRNv0nuvWzUMFCwA7SNs6U=; b=D7b7JHh1oY0gpZfVrcWm bVLPU9k9q3DbofnpH/OfhR3aO1Pu7vm5BC95ccqnukqiFFrq8C8rPxn+wKmX3yhe BeF1G4lEhOejWaSv785LLOpfbA2CXkv1tFklvdZHYUEIBrQu1f4Ov4LfTvbfJ8FQ srPASuPZeYyzeQCSkLa4XimHy9jV7libC24ca6Cm23+2VCkgt5bO/P6hWlEPimz2 kB3OLKKsljxZDx4L5vzs51QWIhBGtq16LdG5EmnAQf8bwUuO/BWDKyrP3N7GQHUL ShiqM5VjAaxQdgLg/BpK6XAgAO/ji5/Ms71bCFHMNseI49LHGHg5d8N/hxz4Dxk3 /g== Received: (qmail 716288 invoked from network); 8 Apr 2024 11:14:24 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 8 Apr 2024 11:14:24 +0200 X-UD-Smtp-Session: l3s3148p1@3RREO5IVVpwgAwDPXwE9APSWg5D5lDs4 Date: Mon, 8 Apr 2024 11:14:23 +0200 From: Wolfram Sang To: Easwar Hariharan Cc: linux-i2c@vger.kernel.org, Patrice Chotard , Andi Shyti , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 53/64] i2c: st: reword according to newest specification Message-ID: Mail-Followup-To: Wolfram Sang , Easwar Hariharan , linux-i2c@vger.kernel.org, Patrice Chotard , Andi Shyti , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> <20240322132619.6389-54-wsa+renesas@sang-engineering.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="zc6r4szvuyukhmxj" Content-Disposition: inline In-Reply-To: --zc6r4szvuyukhmxj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > - unsigned long timeout; > > + unsigned long time_left; >=20 > Thanks for doing this. Is the timeout v/s time_left language also due to = the specification change? > A link to the specification(s) in the commit message would be nice to have I admit it is probably a seperate change... > > - if (!timeout) { > > - dev_err(i2c_dev->dev, "Write to slave 0x%x timed out\n", > > - c->addr); =2E.. motivated by this "if (!timeout) dev_err("timeout!")" which is super confusing to read because the logic is paradox. > > + if (!time_left) > > ret =3D -ETIMEDOUT; > > - } >=20 > Why did we lost the dev_err() here? Agreed. Another seperate change. A timeout is not something the user need to be aware of. It can regularly happen while an EEPROM is erasing a page. The client driver will probably handle it correctly by trying again. Only if the client driver sees a problem, then the user should be notified. But not in the controller driver. --zc6r4szvuyukhmxj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmYTtW8ACgkQFA3kzBSg KbaxqxAAqwfl+isJvw+Tbn4zWASNYgUCF88fdAOUyScMYpiIlRk2c7CR4M4BipLs ppKwIrsKht9D++ljltU34nnMNsirMRI+QBRVrOubmvln130b6d5PzLvw0LmL92BR 9sBawa9Ow1y14b6htJXMB0fjmbUtubcB4vn0vgPNl9DwOyZXGawSQbEDW7eB9Dag FePIO6KW1d01J54d3B0R+nBdbhB4Lr23Q99EEiO2N/f/Oa7cb6wc7nuqUkg1ymgG 4sTRUK95w+FQd2DhaAsXhjzRy1AqCCaW8O6RVDDhR71q808K+L+R4G/Ip/OvuPKS nEd1r9HEG4jOVhNNbjtE8vILhIYU0bwdHR45YNCUQDXWNdfvkXa5A3THpfpE0iF/ D1dsp030Ogwex0OFYtEcUOT9nMeE1Io46sTIwfhO/kmAx5zaZqNB/u0Duv5i6zPA vbG5yO6VEOU5wiJR97RTu1kzCs+UenOXSQ3mRjT3MJM5X8XvS/jQR6SSJflUsc7e E1tj9COegSg9APc+i0kMeJdqk6wV6JGS3XzYI5fOwaHaEK8eDORj/Al95Y/g1F3W yIYZbkL/TAV60Y4Z/VHYqblRa/eFvgzvyrkmZ3jjsTi7Zsh/2r8Dknx5l/tRiN6I Vi+ogc1ZQL8awmqdG2FR8V3hrTEQNp/QxphmSJ5M79Dv8t7iIcU= =4MpW -----END PGP SIGNATURE----- --zc6r4szvuyukhmxj--