Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp72695lqj; Wed, 10 Apr 2024 04:34:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXue9wpnql3mV2d/WhEfmwwJE83bN5UCHcg6dYsk6/cvzAdEGeqYMHwSpnPrn/huYdqv+BZ1jZY1gYcMEqflL1fhpySOcNB1Ekg8P9/Vg== X-Google-Smtp-Source: AGHT+IFlQy0KTKX8pvjY/oM3yg81V3N7DH/HVsmYYSjT2lCS6YrJKMijL4fQFpC2fI1+yp8ZFNed X-Received: by 2002:a17:902:dac2:b0:1e2:65b3:de68 with SMTP id q2-20020a170902dac200b001e265b3de68mr3114230plx.19.1712748881330; Wed, 10 Apr 2024 04:34:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748881; cv=pass; d=google.com; s=arc-20160816; b=Ak/YzXhhcC3T65LhApfb3lVbG66TBNVOkzAuHcx/l1x0oxONYZz+6n0j3RlMWoz1z+ 3dIQXbat/7XAWrFMYyo02tXifyVFK+pu3Ni8jCAAEOYH23nPViGXWUC6qCY5/E/kmWiW mRpyk3QrXr0XwhPWMQvLXklpARKk4Bkn3BT0KJNWRnw8vJ++2vbFCzgQ1+uwsueyKLb1 mw+aOyOREd8tomagD8AKwATyXC9i3DTT7HetFvEbjSqSPfpUiA4nsn1l1JNA1pHyLAmn ZwfCND/3JG5xKjw0N8oaCLAMZv/k/edGHj1FvFvMy1ta1WwFyn6ZD9HTeCot801kNdBo aL6A== 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=qnoZs139XKAMxVPkE0adXp3TqolMOAUOXJsY19exsqc=; fh=0dwY+syGgRg24OhX9F+5Y9H/TU8LJnDwKnDwhcuA9BA=; b=ULKYs1pkupvGx/gHskdpJ/pEEpPQglN+aOz7nn1YE1uG1pqFabvGynVESR2xke2YIi kL8QgTSY15R/2kN6vCXWGPsC8yKHryn0XCXu0CATEm9BegkRhD4EzUz5dAUY6kh3BK/j IEoLAs0ZhwQBa2Qn/2gZOPVcRE++HpXfhl7/Zti/40BWUXhFU5tBYDQGywqVIoqaNJa2 5iVbgOZxELn3rxKs5y0f1rjzi6tSdtDzMvBwaYgokE/kfiyNceI7Xiw5kN0Gn2LVmV5A wK8B8+tbDa3SEh7LaFI5KRgDLB/xSmuXj2XedLA0TzSzSJFr7PyjL3FuaathXb/kulsJ /ojw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="Yyi/KdM7"; 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-138405-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138405-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 y12-20020a170902ed4c00b001e2ade13084si10152091plb.249.2024.04.10.04.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138405-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="Yyi/KdM7"; 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-138405-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138405-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 3A335289DFB for ; Wed, 10 Apr 2024 11:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5874915FA81; Wed, 10 Apr 2024 11:25:26 +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="Yyi/KdM7" 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 AE6AB15F336 for ; Wed, 10 Apr 2024 11:25:23 +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=1712748325; cv=none; b=W2FWXMuDl0YlCmFBQgMqkMdWSU99pEwTUYbvDMvWElVZFcV+Twoc6tnq+af+CTjbh6CNCKGHLBnMtD9Cp2Ksra+P9wIF3348PL+G66ohr7hFVllmkWw4ceNRFe654gXzZYbNJeNVOJpRcZqWRGZ9cGlIOGl7yQ56/VorjQj0iyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748325; c=relaxed/simple; bh=ThHy9SIXt6aBrf/B2/hW2hu4s6jDQ8sFpoOCGbGodJk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U2qja65/EAOdPgNb/lSc5YwaDDxvntarU78XKloZ6lCgWqPL/c2aP1lAjA6S8HbtCsmL0ys6as9if5jj5W1gPj2EOxezVbPHcw5qpIwsQ+caQn3OdmC17ssOEnpz+z89qWKMMai4ALw1hSaSV5w0ILi+bzDohJ/Wh34Ry9Cyj3A= 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=Yyi/KdM7; 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=qnoZs139XKAMxVPkE0adXp3TqolMOAUOXJsY19exsqc=; b=Yyi/Kd M7R6vZohSpRBgAtEIafDn6GLbwBAroivxmArDdI/4FaDqogZ3WhZByxC+Tt71Kg9 RZukTV6NUMJ5oYhaM1Y7D2F8P4dajrU/IGlNwLAY2QPGpWEfnbA1VE0jCyCu4WtO He/TolKpX+kmvgrmaQuSXRic5gVCjpbybcvjePeLXzLUiDST2jH8f6fcnk33vucN j5SWaeq31MmfELL+Mb3uu1fGbv5XSen84y6O5+YdlWafPsWgZaUZFzjJUyxQeWc2 nxbFzGes9JCeUDtdHT/iyffBrqAnSDp18t3K9BBb8MakJFVMoJd6Hbf971FWA5nC LCHVGS+QNrVxW2sQ== Received: (qmail 521961 invoked from network); 10 Apr 2024 13:25:17 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:17 +0200 X-UD-Smtp-Session: l3s3148p1@PmEHS7wVv3JtKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Laxman Dewangan , Dmitry Osipenko , Andi Shyti , Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/18] i2c: tegra: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:30 +0200 Message-ID: <20240410112418.6400-36-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-tegra.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 920d5a8cbf4c..85b31edc558d 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1331,7 +1331,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, dmaengine_terminate_sync(i2c_dev->dma_chan); if (!time_left && !completion_done(&i2c_dev->dma_complete)) { - dev_err(i2c_dev->dev, "DMA transfer timed out\n"); tegra_i2c_init(i2c_dev); return -ETIMEDOUT; } @@ -1351,7 +1350,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, tegra_i2c_mask_irq(i2c_dev, int_mask); if (time_left == 0) { - dev_err(i2c_dev->dev, "I2C transfer timed out\n"); tegra_i2c_init(i2c_dev); return -ETIMEDOUT; } -- 2.43.0