Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2896598lqt; Tue, 23 Apr 2024 05:13:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCRyugsDhdwOuFheW+/0tmRcU/2bGx1eRZpJ3r67uoAsqDX5WJxDcIDbfPpxdvymsp0RUho9+3xEdMl+T32nYdLcc60iLH60XnlRRB6A== X-Google-Smtp-Source: AGHT+IEDvnRV1UWLNd/tAib2c3ptJc/QFP3fwGXjtSpUIOzmyH1S8adsekn4fYZgI6+ZGfeTwDxm X-Received: by 2002:a05:6358:1910:b0:183:f7cb:af75 with SMTP id w16-20020a056358191000b00183f7cbaf75mr16168994rwm.32.1713874436499; Tue, 23 Apr 2024 05:13:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713874436; cv=pass; d=google.com; s=arc-20160816; b=pVK1MZt9ssaYDTnc0zaWEC2VcW9TvpFNgJ35wUonuDSz7ytmZkv7QtC1/lNUKWvsH5 Lt991d+I+1Bd2cQQ59DDs3zNHworKxxExwNxaK/FzKSJMDPma729BYvC75rlaKOz6GOr b+5BRcuxYa7J8OOczZs9G+UU7kS/jmIWb9oq/zANSUFeyMdSY4Fn/flZWniMAEzcFoG+ P44OPxZb9LzXGhIaYNtDAMepSJpLA1Zt5yyZC46pZR1ta7MAJDFfpq8H0fpxMEHWIrZx 5gxXQV9taHgMy0jRQtQ1t9lSp3kaNsJJftQTCzoQyYXuWO4LnaNyoSaUxKRxAj6/D4PN qDkA== 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=7RDJRV5+hQ+u4dC/v/o4TT1cTTNjvD7fahHVBI9qmOM=; fh=4rCUAXEVsxaF0v6fFzDttaa/8UcUGFLktTHhkcSEHE4=; b=idjBG5ZB6LY0YbFV9ncd5pBb7InG3N4b18ik9PZR+DtK8HhwmLDlQue0yDcZVCOYpZ xxxZa5uRNdYpYoY3aCHdiQkf5xq1a875bEbEfd/M6w2NVyyrQvhORdPle4A8qiOYbvBA OXMV64zW2JT96AJekuvIkZtihOn4u+qu73VjYiub2ppN2Gkc6ftn5CCxnyw6KWWe232t e2VBlBM8tk5YlAYy+FVPD654xzuYHor3tOc5g6kfyAzp59+yg9uKbh2oAJw4m2yU5kO2 XImf3AMix7DS4AOWE5CGsfyERb9rkYo6bBnyaU2eD6W1TY/yaoPulUBDKiY71AOamkeY lHCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=OsLrmj9V; 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-155140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155140-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h22-20020ac87d56000000b00437bd2d2e14si10783197qtb.635.2024.04.23.05.13.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:13:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=OsLrmj9V; 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-155140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155140-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 09C7D1C21D93 for ; Tue, 23 Apr 2024 12:13:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A4FA12B171; Tue, 23 Apr 2024 12:13:37 +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="OsLrmj9V" 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 2062084E16 for ; Tue, 23 Apr 2024 12:13:31 +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=1713874416; cv=none; b=nbtex/l2XvsyjztN58/xVpRwXyabno79nTxq29Y7Z11w4d59zqzTYFWS1DJtuVPWG69/f/YH8XNM6myauHWIOOAibCNpf2tcpAPM0IHE6V4msCFVkzzb6ziUs2mzcXpNIuTKip+GKTPQ8wg10rrhvYTyRS4RgLyLb2z+lKpJH+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874416; c=relaxed/simple; bh=xbf1WNjP4IO1W0OZaIGlDuC4mr4dA5AtAr7R2Nila7w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nk+TM/1AsdUcJ1AR1PeOtOqLL3ZIS+Uffmbl/SdBYJYc/Lb/yRQd7mRCSPoLhTHsYucD1a0NRZ3VaBqCAus2hBOnApsTI5O/rm1em7ppCacMRv0xH2jabXyqKYxbUww9TuLnGBbbNnnRKVgpl3z+T+Ja7yDLDvIICC57qXZdYKc= 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=OsLrmj9V; 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=7RDJRV5+hQ+u4dC/v/o4TT1cTTNjvD7fahHVBI9qmOM=; b=OsLrmj 9VBC/sUCRhezmgv2Kvwp5KDUo0sKJFU5oLlAorfOsEsUiGFGnGukpqQ3RGlUKEno 4zqE+6wCW4NOxLyWPx3nlUvMPDwjfnSf6+0gmg8zv+aL59eM6QMcX2jlrrYHqgow a6yCs3Q23+QTl/uQvZfYrgsLX0mtv+WiZ3ieTEot4NbymRk3WrEtFoaT9JJriKuB enmSOkxbQixzHWpKdcQfTaqePkf04sEWzihlWZ77x/bX7e1O/nKqGZV1De79unB0 RW/zpielGkhB4ZMwgkkrzPVWeQLK5BnELptpBOIWJYDUJWnUeLYo9sZAtt5onf70 pvI4I8OxECiLRbfw== Received: (qmail 215926 invoked from network); 23 Apr 2024 14:13:29 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 23 Apr 2024 14:13:29 +0200 X-UD-Smtp-Session: l3s3148p1@3SVZe8IWUsIgAwDPXxiyACzheF6dGXh7 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jean Delvare , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] i2c: ali1535: remove printout on handled timeouts Date: Tue, 23 Apr 2024 14:13:19 +0200 Message-ID: <20240423121322.28460-3-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-ali1535.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c index 461eb23f9d47..9d7b4efe26ad 100644 --- a/drivers/i2c/busses/i2c-ali1535.c +++ b/drivers/i2c/busses/i2c-ali1535.c @@ -285,10 +285,8 @@ static int ali1535_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 & ALI1535_STS_FAIL) { result = -EIO; @@ -313,10 +311,8 @@ static int ali1535_transaction(struct i2c_adapter *adap) } /* check to see if the "command complete" indication is set */ - if (!(temp & ALI1535_STS_DONE)) { + if (!(temp & ALI1535_STS_DONE)) result = -ETIMEDOUT; - dev_err(&adap->dev, "Error: command never completed\n"); - } dev_dbg(&adap->dev, "Transaction (post): STS=%02x, TYP=%02x, " "CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n", -- 2.43.0