Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp72789lqj; Wed, 10 Apr 2024 04:34:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/T9Cfqg2BTI8MVUKb3W91wTtdkKnKpry6VNjSnFpkFR1Sda0Obel7so9Jd4CLAd9xYU6NVznukZ3qIZKBS5wjmNgHaFYeh7mqIfvd1w== X-Google-Smtp-Source: AGHT+IEMR/KjQCoeqQV+7AvrfnDVocjqlWRTh9oSnN6gfDaYK2VuRdfuTpIkSHrdtOZxITH4t+Ki X-Received: by 2002:a05:6a00:3d10:b0:6ea:17ff:4dc0 with SMTP id lo16-20020a056a003d1000b006ea17ff4dc0mr3135278pfb.4.1712748892908; Wed, 10 Apr 2024 04:34:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748892; cv=pass; d=google.com; s=arc-20160816; b=Me7Cgoep93rQk/WCxi4ljjfKaBQqOzIz37/DCwXhrMKJN65IgDKzhrAyxg1iEZC0VM zkyiJehHnTl+GHkwHlr8ilzaXCABJDwzI5Z8d6cF88BY8ylgPUuIr8rLWFwPmh4/FGj7 LpqYJq4Qo1CI3qJInb4xXXXhGEeSDZfndQwmt4uaT6BcNDaIS2/8zYPaz5ent3JdCwFS KxTQlw1Rq/2Xm4mwwrffAWR2jVaOXYLnvxASU3H/1IqekQCLE5HXGvTyKFXOrl4+t20D xhzU40NKtRd3AdzC6lZlw+/EVBEy0xM6xJbdHdbO/TwlE9Rj1FS08RSckLecOSuyo49c wIHA== 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=X7d+g6GmFE6xmFhmuPXFDnzDcw798Dd53vujZTSLEyU=; fh=QU1EoIhIci84RJaMyW5ioQE3InGtWf//AimTQF2X2U0=; b=dsWJ1XzJMpV7A+oN/Q0/cs6ux548fTxdIOj8P/Pau/bRr2aLdfr0tgQ/8MjPv49p9h UIj4qaKGnaOzehbvqsNj8yitu14YrgLpVHaTcHalaqgL0Q/y8LrSu60x/9Ieb1YsRdWs m0O0QtifNCAbaRHpR7LSAhaJ848t7uujtrnedCQhmpvSAS0ymOsyCJsy5W9ahPMNt6KD pFPcRs0cI6cQk7AdaD6siZH+BrZhmzJrXxXlt+iZeFSxnytZ/kPQ3wKUNCieoSaRQVgB K6rnLvRO9/8uV/An0tlBTk/41fyEUYcx5HCaybJPmGiqopc27q8yqufIc79ibjE6ktoy 82ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=PKAMFF2d; 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-138404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138404-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 i9-20020a635849000000b005f0565dd8desi10298378pgm.431.2024.04.10.04.34.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:34:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138404-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=PKAMFF2d; 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-138404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138404-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 DFDDC289805 for ; Wed, 10 Apr 2024 11:28:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 126F615F40D; Wed, 10 Apr 2024 11:25:25 +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="PKAMFF2d" 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 2C5F015EFBD for ; Wed, 10 Apr 2024 11:25:21 +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=1712748324; cv=none; b=PssXxeEYi0mb9sUsibvES8rjCO4W6oYMsPiTNxwQzAABzu/bur09+uXhghfPCZhfS8e1IMTW7GrQoeqIbY8ELk443ZlTc2gVsNOv4jHO9rMxvQ3zDgwK6HYVfeVrbjTNN/eTUSf0mfwCPQC1LKficFxtYtnYR7jW3dkEKG2KMt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748324; c=relaxed/simple; bh=VbT5U8ZfhwgSJUluudK7lvicyVZ007aXNFKLal9Ih8Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oDKlPgy2MdyGnHnxa8wV1ehJpI+fpPMloWJS3B6kwgguOwVH7FTi/IwqFkD9iNXjd7LKShhV9njdjDK9kTujJtWkxOJZ2PQrShXaGF0lu/DERpQypaM3mPlb25oD2IOPZkOgZwSKm2ChmK0aY4UMArwn3MTjoua1xpYVJPn8y6c= 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=PKAMFF2d; 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=X7d+g6GmFE6xmFhmuPXFDnzDcw798Dd53vujZTSLEyU=; b=PKAMFF 2dGmeXmjkFQh4VLGO9ahOzd7m3cQAUQF27XMFlDxU2MFkPjfPwebZM/2DObDBa0Z LeRpedKIml6vzuUsJGQVa35jts19EyAcml/wUVHDGxDue5BMe/AaBrTrLc5EpqwI wsXlvha5j/soHtNQ9s5+t8aBrbNQiBOw1MM5thC+WHeBXkqomwlM7UfRmCalc++Q w37nbeaKUNpocTlHK65IQOQbcZCpQ0uWSJUZyoILOgoZE5JMNKN2IeF978hvP5fH 0IcZuO9tczGuL7Aer1RI4as0VaM4cbtUwD5wrsxZsGqHK/894Df8sprTkyTxifOq q6utamIoTepr1SuA== Received: (qmail 521909 invoked from network); 10 Apr 2024 13:25:16 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:16 +0200 X-UD-Smtp-Session: l3s3148p1@oQz1SrwVMHttKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Patrice Chotard , Andi Shyti , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/18] i2c: st: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:29 +0200 Message-ID: <20240410112418.6400-35-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-st.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index ce2333408904..dbb93394ff94 100644 --- a/drivers/i2c/busses/i2c-st.c +++ b/drivers/i2c/busses/i2c-st.c @@ -689,11 +689,8 @@ static int st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg, i2c_dev->adap.timeout); ret = c->result; - if (!timeout) { - dev_err(i2c_dev->dev, "Write to slave 0x%x timed out\n", - c->addr); + if (!timeout) ret = -ETIMEDOUT; - } i2c = SSC_I2C_STOPG | SSC_I2C_REPSTRTG; st_i2c_clr_bits(i2c_dev->base + SSC_I2C, i2c); -- 2.43.0