Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp69920lqj; Wed, 10 Apr 2024 04:29:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6hvq58swUv6hL32xbytU6XgO6Dx1RxRHG3P35YngvnzqV5ukXiJSnPO/5EhaGssxazVZx9I69OHFhedpVNttT0EOlnEyW1Gb99kVFwA== X-Google-Smtp-Source: AGHT+IGWyGqufFgQg3Gu4zAc9Eu17H341EgNNePyFhVPf1mcwL832R+pPfOXk2oeV6F1U8g4BTtc X-Received: by 2002:a17:907:20ec:b0:a51:deec:483c with SMTP id rh12-20020a17090720ec00b00a51deec483cmr1253572ejb.6.1712748557518; Wed, 10 Apr 2024 04:29:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748557; cv=pass; d=google.com; s=arc-20160816; b=ACwTPBK8Var8EDRu/OxpIwX++OZfhLq+2sswbkSHwGEB9GyMKc8iZuJU8NfvHuD9e3 2v8do47z2Lvn823je9FCU+BEcPlaks39W5ztDKMJyYIYcasJl7NYTU6U6ugXxV3rT/wd K1Rrtcztrk4ZRkr2mIQFGttkdMl4+ddVcpjL55kclWlnfAQhx1SGISvXR61Gb1+svogt giVyB9Z+1z4cZRQktj8ykMneWjfBS1Hw3CGjrsHGyo1hsBHuwfybw3Y+Ebs6pEEt7gG/ qVn25wH7Wq/VcXFdFbnpQgKNBwdArFUioRB2jobXx8uCa3p4j93ipxNMR0UberF53YPJ 8LAw== 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=61Yt0QJyesrW2fxW1vjW+vSic4XhfkDmhgxF5NliaQY=; fh=cO2hYpAek1kzMumuC7kb9wnDjsRb+kzN71/5GaQ/aqA=; b=X7HQFXWfcbDz7196gPDib/UcQPGUTWtU6FYS3Y/MAxbPqKU/greNf2gsFi5vGtG+Fd F0NlObP/5hg6WNGxf1PwmEdcfG/DzWP0fJcZVbIHrBNWV0/vaCoWo3y8udZAk5CXdzdu aP3BIw08R1XubwxIwPV6g3EzBKZTUfyLhKdWya36DKkaWfmNcTIezD4qMSRMenRPw2ml uKBZ3kdRZVwyBdnVc6qZo9GzT0tFzuZljfsnoNJiSBqtVrEUFnbS9RwbzcS5Vr1QA9xH zYfDy8Ys5a7QzjCQIQVdGIZ86/ZLkTPBX4qJP8KIWe5Qvcn/pQyStI6qJ8Obm3GxoVgL Jxew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=IViNnxeH; 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-138407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138407-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ky23-20020a170907779700b00a48b954b0acsi5584217ejc.164.2024.04.10.04.29.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=IViNnxeH; 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-138407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138407-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 4448E1F2288D for ; Wed, 10 Apr 2024 11:29:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D6BB161308; Wed, 10 Apr 2024 11:25:28 +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="IViNnxeH" 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 B647015FA62 for ; Wed, 10 Apr 2024 11:25: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=1712748327; cv=none; b=cngreMSSU7rGnAWpYLbK47D8vEjnUTs0yHIYfRAZvBu1/661Iy5fGSyQArrIDPIk+HHrgm+XKbvoArwMppGo3HfFc5EUaSFhdCHvQdubDRe3Vl5hAgRHkPN+5zYL4gqshOsGxL5UnnWp1HjgOBw3SbweoRJcvZYyihV94ZPI6tc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748327; c=relaxed/simple; bh=ZiIjtM/8yvx4TeW2A4HFmO5GY6NQemF+7DUdEnuG66E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uVhqCcWh1WB725EJTiR9SmnyaNRVE1AwIGsrrxflx/KXqA18U6+dj60kllQSL4rnqVjeHvqlfKpxpp75Qe7FdNYu4KNjEE/OyDkBREQqjWm8xyilvLf/lKCUM1ecg2psnGN2AmB1yo9nSQKuBxUlajfu0fh1oh7I+FrEEvKRfVk= 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=IViNnxeH; 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=61Yt0QJyesrW2fxW1vjW+vSic4XhfkDmhgxF5NliaQY=; b=IViNnx eHj5O7F0ATf1ZZxzzvdVQShvxXYAouzRxRIxxXNaHE6LWqn5DqSsZEc2Zs0Q4tbY LNAG8XFS2dYtwS6Z79oh8bi3bFWPTp2k8OO41KzviQFrX4OYBsLoZkWWjdssFGb8 gXL3C/0XjyZUDsaG+77QnuyuY+OCMho73iTthf3YS9WAFiFNETFTD9IT0d7tMkPY wc/FlE4DsHk2WncjxqpAdEvpy/7k/zOd9FTdFOcIED0ZywK7pDkE81XnkqrIrw7m NSLNbw2gZfg65WUxHxWM1226ovjfS3RByq9vRwKXYAnJfmVMNwhcueb0fujWHKXG Qs2aPyepbCwSftYg== Received: (qmail 522049 invoked from network); 10 Apr 2024 13:25:20 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:20 +0200 X-UD-Smtp-Session: l3s3148p1@u+osS7wV6xNtKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , Kunihiko Hayashi , Masami Hiramatsu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/18] i2c: uniphier: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:32 +0200 Message-ID: <20240410112418.6400-38-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> References: <20240410112418.6400-20-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-uniphier.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-uniphier.c b/drivers/i2c/busses/i2c-uniphier.c index 854ac25b5862..e1b4c80e0285 100644 --- a/drivers/i2c/busses/i2c-uniphier.c +++ b/drivers/i2c/busses/i2c-uniphier.c @@ -71,10 +71,8 @@ static int uniphier_i2c_xfer_byte(struct i2c_adapter *adap, u32 txdata, writel(txdata, priv->membase + UNIPHIER_I2C_DTRM); time_left = wait_for_completion_timeout(&priv->comp, adap->timeout); - if (unlikely(!time_left)) { - dev_err(&adap->dev, "transaction timeout\n"); + if (unlikely(!time_left)) return -ETIMEDOUT; - } rxdata = readl(priv->membase + UNIPHIER_I2C_DREC); if (rxdatap) -- 2.43.0