Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp69064lqj; Wed, 10 Apr 2024 04:27:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQHFWNzXVmhvdsMj3j5GQfygM6mBFBJ2Es4ps5pqvxxarrXCjbNcJRRfFOG6eMhkS4TnFFgTWWCYUIisCkaRN5WGYp1g9FpVFV0vFB2Q== X-Google-Smtp-Source: AGHT+IHj28AEvDAM6FDXbKS3QZr+yNOHyoqorWlFbB1yZ5Wi/chgWJHEZ/5GAbB/pkI9MjbXf3Eh X-Received: by 2002:a17:906:c106:b0:a52:1459:d685 with SMTP id do6-20020a170906c10600b00a521459d685mr646054ejc.43.1712748434333; Wed, 10 Apr 2024 04:27:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748434; cv=pass; d=google.com; s=arc-20160816; b=E+TX/o4wSSOkcuN/1GzEznj4owYBPuhzuVYcp2DFogrR/8rMUufLx3Jg/Zc9gNBJI6 BKvqh5bu04yjNJaTR5JRFwxqnBLXsZOx0M2Pqw1YOjUDXLjex/JWe3N/2qt4Lvo+lDtP mq9E2GcZ2iEEMkh18TNm5PhEDYiLIbBB4/QOm31wLQ39EdPJ/wJwILj827r1m0RAPk5e i5R0hZsl2UiuAL9Lvnau3TsO9DoMl9Wm2o2mV3eOKE5U1vWOSylOw44gvrEmjZkmu+2O XI5LxhbRegMFUiGFuAKr5N03UH+7rUMBRnXWLcZgAoh6AgIiW+KC+n4Up/m5cHCWhQx8 oAnQ== 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=3esuL+DU1erk/gYHtm2gF1OBGVxFNyh1r/SypUa9yCM=; fh=j+H3Fa0afdSk2LwtuLI2RSreGyrzith1xJe1Lv3ihQ4=; b=SBvzQoTU6ReRmk2f5W+eQMvoefG96yjj02spRCor4oXLwuKcgynn5qocVM/GiwCgGs LVOUZNmQ+JwhuLgfACSfiuzzxV6lhWUWlvdx5ZD8E9U7NK+L0MHHSUGcoTzr+zPJMqNJ oWzVWjcE5qwnRJPKgbrR6EFIgEecUhGgu82R1B6strPKX5TieeZyvu6XFNsOy+cJwTPl dSdptveOHkzeFf5tOtR+4er3Dmwbp3PM6SaXD9VMWP0S+GLNm2QJEtljCuH7z7cySRMb fHM4gqMDf2BG3wZM+cByqu5G2XoMKynx+0LMId4sgx5IE1S+gQ30no6eyPuibJbHhD9I PDCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Vr6qAr8i; 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-138398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138398-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 l20-20020a170906a41400b00a521747d9f2si20197ejz.918.2024.04.10.04.27.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138398-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=Vr6qAr8i; 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-138398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138398-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 039061F22A9D for ; Wed, 10 Apr 2024 11:27:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3432315B0FF; Wed, 10 Apr 2024 11:25:19 +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="Vr6qAr8i" 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 385AF15B98F for ; Wed, 10 Apr 2024 11:25:16 +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=1712748318; cv=none; b=s5Wbz3LGa0U6Fbpa6k27s14aVyR9TglCbbJZkoFSSGu+vb3XjTOb6QxbT+oaP7xB/4yV6sqHlJuuFPezAQjY9uA2ncpnYqKrmApCvXPGjLhMWnlbU1zcNMBEhzcLN+gCInKBFq1TGJEq9nLxuv+7UrXJzxceSS91cKfJr8VBu4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748318; c=relaxed/simple; bh=KPt2uGhm9EdfH7F5fIbK6qEcblJ4g2P2Nirv6Vrgn0E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SgLHRNG0EJxZsv0+3FF2/RRzJqpHqEHkxEtSjqzxWj5ipClpagoUroO12alu2OY8qiDXNqxlTeComLFjKBQN5l664cjNlWEHE/fc25n3YOro3yYe97eH0stErivo6xKjr+WURg+Gi9rVv5MRcc/q6gf3YuOeb8fiW488nMsBsHQ= 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=Vr6qAr8i; 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=3esuL+DU1erk/gYHtm2gF1OBGVxFNyh1r/SypUa9yCM=; b=Vr6qAr 8iFkO2wOh0d1gYTcxzNKRyDBqot/1ghiSOBRenx8UjsO+5PnOwwgoljk8Bs/UjIQ kbTetXqSgGkGWju9mEG5XkPttMpOltFo8bPzQwTAte/ly+rE108AWwHLP8sAtiZj diJblVIrmuAlp9n2ASvIDo9yY7FXDSOFWXfHqJ4sNFcPO3D/2OiY4q+t4uqm0e/f q8QmDwWXO42uR8VA1W5j5/WFcbOq6LzMSrn3wvZ5jYrLQM+c1XQhE3zlg2+bLwYP zgG8WxIPhfFPh0+uULC/GQpyFKVXQQUW+QiQkzK3WqGAGQ4YeBeVzrIJJ6N8Woqp N96as7wrkefpS4xA== Received: (qmail 521590 invoked from network); 10 Apr 2024 13:25:08 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:08 +0200 X-UD-Smtp-Session: l3s3148p1@YCV+SrwVeGJtKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Linus Walleij , Andi Shyti , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/18] i2c: nomadik: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:23 +0200 Message-ID: <20240410112418.6400-29-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-nomadik.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 4f41a3c7824d..45c6df26fcbf 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -542,12 +542,9 @@ static int read_i2c(struct nmk_i2c_dev *priv, u16 flags) xfer_done = nmk_i2c_wait_xfer_done(priv); - if (!xfer_done) { - /* Controller timed out */ - dev_err(&priv->adev->dev, "read from slave 0x%x timed out\n", - priv->cli.slave_adr); + if (!xfer_done) status = -ETIMEDOUT; - } + return status; } -- 2.43.0