Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2900840lqt; Tue, 23 Apr 2024 05:21:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBI+PHT0C4X6vKglKiQIHpAIw1+iuoKRvicMeRuQimIxScrFi8mDU6J2E6n2Ryd8JPg3TpN3k22b1Kpx4zTymBb6AuUYcU+mCd34ZS2A== X-Google-Smtp-Source: AGHT+IG+lJk9TghlwMo04G1iXnfyB/m3LdFiW+rPI2+iXgmQsXAHfXJ41Veo3EvVfycILpxevmX/ X-Received: by 2002:a05:6a00:1d1c:b0:6f0:c828:65c1 with SMTP id a28-20020a056a001d1c00b006f0c82865c1mr13549243pfx.2.1713874880042; Tue, 23 Apr 2024 05:21:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713874880; cv=pass; d=google.com; s=arc-20160816; b=ZQIjXu2Tud3eYWdivjw5IIJnwxKbawqeYTGbSq45mVoJK41fT//aqdQUgz73siuqkX Tj/SlnhyBDPnXN1lXiQic5iFeZOFnSdtoXnzyOx5EcPjb5EjQkIvesUHzKQ9GkYU04NV dcH0sWaV+z5JFjlPlaAHyA6q+DPrBtTMzTZvGlg10bVZx9pLn3XkkOfdnT6a6WuBZSCi YzX0yMJPXi2Gt2WGEmh7Z3Fnb0TMNMb+q4W9bS2Zh2raHWGHk+A/uV0Z/tM3TJwxPcWO KC3Ga2YuiqOmcJLsmNpi4S1hHFUPciEvAdnO7TusB+tZbCViQcZH6gUiYg6qol/Q+gr4 XHCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xe5iCNJGYAImX92c4VMr943pPMAZr/upLvt8TB4E1Rk=; fh=4rCUAXEVsxaF0v6fFzDttaa/8UcUGFLktTHhkcSEHE4=; b=Y/+3dKCagFn+iLk6dKNDUgD/RPr+BRxWCvsNIpgo/3TpH4L3h3iDacpJzZKGg1h+Lc nJ9Nyp8zMhh/mImOgmPb8/v9a0vNe7kqJFqM8DQvlMp+eN68kHunEj+rC/y3d6KaT76w 4v47bZWdvDTZgP7UxY1Q8wds2U+TsBxCG8US7ZMBU1G20BTNFAGUEGz3m+yPgj5v52Fu CwMs0am0Tu8wNl9TM5zESRyU4TrSejhe2qZ/3Vf4BkshzZ/BDUZ4Gpgemmv4/5soae35 P96Er+U0okABj1uPvjmkwXSlTSNj43sdwLNVhD1Whxa3RwycG3Qu0849PvM1iwCitbRG /sHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=TzWzw4zX; 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-155141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155141-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bs7-20020a632807000000b005dc8f60cdf9si9710785pgb.302.2024.04.23.05.21.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155141-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=@sang-engineering.com header.s=k1 header.b=TzWzw4zX; 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-155141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155141-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 795372884D8 for ; Tue, 23 Apr 2024 12:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CDEC84DE9; Tue, 23 Apr 2024 12:13:39 +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="TzWzw4zX" 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 35EAD84FCB for ; Tue, 23 Apr 2024 12:13:32 +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=1713874418; cv=none; b=Z7nWtazfJOyV1jDfEWRDQxyozj5nrYyrFckXXi2SRctI25+EbgjZ4qSmhxwdypzR31SAEjQtsa0/d6dY0cP5d1DBQo/agXWSyuJ2w60oSAW0QJrc6HcjtmqOzhdHmDJNaj651ZmD12hb3YfPbw63mgf2UbSn+F3OJTYzGoE5coA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874418; c=relaxed/simple; bh=0jPmD9w6MO6TfNirky2Ez+VJd/uyuUY40pI0AtAvSpU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eHbjZxTXpeIscxlZ3Xkm6AyDzed0IKNvk6V13FmXkV88Lfrq2yrKzv15Th2hLrt+NyAM5v77NeafQrgQA70VXq0BGnb4Ho/gcay5ssmpreG2IvMEEIwv714kJQcr0GQCrgwtW8YUOaxEt2wOSCJCViJi2Qjcf4ERzfkOxQsALb0= 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=TzWzw4zX; 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=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=xe5iCNJGYAImX92c4VMr943pPMAZr/upLvt8TB4E1Rk=; b=TzWzw4 zXLdQiwmqYFVdOdf/vhMQHs1khqXsRzXhUUnaGLWq4B4MLBzWbnSQ+SjHGA5w/hs RDlPn5o35fHgrOvLsVcML94E8ZV2VAOVgnevPn/vUjDX9VQLh56eu53g3nsyPJwp ZV/qhYTSA//TE8GReYgaBuG/y9i22nTDx4ifjpAEfN/G9ka5Xh1DvP2cIsIHnQ97 zZ1ea5Yc6BqrI8CnojBEIojVOhIBnhTBJJDrF59MzUrPwACfaTj5Vlu57/dxJ6fC DQyBoohCBHIA4LsTxoGvETCzkRsaZhibgl5cEQxr2Jx0VIWjYrtF+9qTrazSooR4 liVpdILFHALtej5w== Received: (qmail 215997 invoked from network); 23 Apr 2024 14:13:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 23 Apr 2024 14:13:30 +0200 X-UD-Smtp-Session: l3s3148p1@iRJwe8IWYMIgAwDPXxiyACzheF6dGXh7 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jean Delvare , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 4/4] i2c: ali15x3: remove printout on handled timeouts Date: Tue, 23 Apr 2024 14:13:21 +0200 Message-ID: <20240423121322.28460-5-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240423121322.28460-1-wsa+renesas@sang-engineering.com> References: <20240423121322.28460-1-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-Transfer-Encoding: 8bit I2C and SMBus timeouts are not something the user needs to be informed about on controller level. The client driver may know if that really is a problem and give more detailed information to the user. The controller should just pass this information upwards. Remove the printout. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-ali15x3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-ali15x3.c b/drivers/i2c/busses/i2c-ali15x3.c index d2fa30deb054..956e5020d71e 100644 --- a/drivers/i2c/busses/i2c-ali15x3.c +++ b/drivers/i2c/busses/i2c-ali15x3.c @@ -294,10 +294,8 @@ static int ali15x3_transaction(struct i2c_adapter *adap) && (timeout++ < MAX_TIMEOUT)); /* If the SMBus is still busy, we give up */ - if (timeout > MAX_TIMEOUT) { + if (timeout > MAX_TIMEOUT) result = -ETIMEDOUT; - dev_err(&adap->dev, "SMBus Timeout!\n"); - } if (temp & ALI15X3_STS_TERM) { result = -EIO; -- 2.43.0