Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp177920lqp; Fri, 12 Apr 2024 14:17:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVklpYAhb7G90ySTFXpbajVl+kg45emSHIQvHYi5O4MAeeAY7Itvn3XI/ZKbBjwYBgHgdNMF/QahbSTwOdFwHiCJS2ap75jzETvLIO4YA== X-Google-Smtp-Source: AGHT+IEMUnwADgNd5T7oX20QRyGtup9suDpXuI5vRHllHVcyj0/EHdlBrTTtZ2aZxjir6NnruUvz X-Received: by 2002:a05:6e02:1526:b0:36a:28d5:d040 with SMTP id i6-20020a056e02152600b0036a28d5d040mr4337449ilu.17.1712956678024; Fri, 12 Apr 2024 14:17:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712956677; cv=pass; d=google.com; s=arc-20160816; b=l856CDkye6kQ3V8DmaWxEUdbClxmoBxu1ZMUWdQZJLZGbMpLlczs1uzYizmFg2ihSS c/0UxBptVvEVWo9Yk0gk9pmAeoYPyxR7MyMiHjQDChu/QlVXJnpQRlRxREULoVRQVIqI 0hfcFjjWAR5HSY4v2puPdf4FC+dUAFmZ/8NW6BBK74xaZ6nL3fhwOvd8nUbcDXaMRwq1 NaHLVqgUBI6gAR+yfaie6ZUmmXcEhBJk6ndjRejDdFLiYI8KrNhPe+P4wr4GQjbSpRrQ qqLXEgWGsPxyfvrj1mDOQkb+qmIdKvGpenx3n+gcfnqafy1AasdCn5wG0HGrTD/3J3oC prqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=+Eex/96Clk4YEe9dDCjud+Kr7GJR8Rpozk+rMxf9QX4=; fh=hHcAIlX+n83xpkEeHxhtHSWgi0urV0eZLVgEc0yDWZM=; b=w7K/gDOxiHa0nA4qsjWMR2CLQoXeuiWwV2c0Q8Qx5kyCLg0EqaoY0xLWVhByOlo+gv R8+ZvF86E1g5EvRYT/+Y3xgicFhMC1ZBBlxLvbYYkKukvYRruDN3tW2G3tRyLO2vRXlJ XX/Af/zX7zqG+aRI5uHOaFOpk7I7qEB3frdd8/sMj8KTjw30dqMBJtU2ags7LL816OaY tyg8o1OvMEy3bfT1+dqJOIz0WRYn4VRWTkaawpRJ0CAQxCjsbjGcFwMI6O2VKcv3IFSp Ryzftr8ux0E2AShc3xbn2o1ykt8fo30QPa3iVgCZNTe6CXIYzZi3tdzyTkLYFCVTBi2S J82Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=gJkPvnYV; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 35-20020a631263000000b005e438e96ae6si3779928pgs.601.2024.04.12.14.17.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 14:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=gJkPvnYV; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C7956B2370B for ; Fri, 12 Apr 2024 21:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B19C249E8; Fri, 12 Apr 2024 21:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="gJkPvnYV" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A34A1509B8; Fri, 12 Apr 2024 21:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712956376; cv=none; b=ogd16pLOUuQyc5dcrUaEHFcxuijtdKGf77ynI/eFCbkUeHe7ldNsa+xOdBOBUEY4dObwbVQJHWEU3DNkYTdUYl1X0njaOKQnWZ+HVnVye/8k/n2l3fBJoosdQFJjjVk5QYtImdmyO+2TOB9QZE/P20HmaZL74dOROX6w1tRlQ9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712956376; c=relaxed/simple; bh=EjX2jdQMVn1JND3qJNjAUXPOAkthZ0pv0rGGT5qdgYQ=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=TxiUklVJOsiHaHGWcTjEr5Rcn2ToebKsKbO5yOV3gAIe5TFmIK5tgPNYjLFghV1u0kNlVcp5iwe8SYPpMv+mmFbOma6MYcBa7F32Pl/22I76FQ+ir8ERbVyUEm/aA/evomC/PASkCZsKrevyIn2q39rb5rzWtFuSq3biqq3epiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=gJkPvnYV; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1712956364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Eex/96Clk4YEe9dDCjud+Kr7GJR8Rpozk+rMxf9QX4=; b=gJkPvnYVlzJVUbumqPTbD5rM2Qx+xmj9iyFfp9rnQtwduvxqrnGP0VT/rn7hKtf1/VD4kH MrsjsQhnPG15tKJlqtE4lwPnEKHWDeYUpQIyBzNGgxiqyAfwXopy3SS28sqf3qdEb6zsdc V9KveXmSS6fCL3e50Y62+p1XvM+rv+hIthnHtqwdHtMcoENrMgZSiHXmIIwrO4WrvTFRGy 4ItJhBKdefJvH5wP9Zj/D0Ngbik+ILf4m4PXv8R0MQCWqUP298ixzYyylV/LWVGvKVwfcH WdnPLSnUkYtFVz7JkPXdueYmCn9wMmET+ClBbGGHHNOSoK4tLJee695/XW+cDQ== Date: Fri, 12 Apr 2024 23:12:44 +0200 From: Dragan Simic To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Heiko Stuebner , Andi Shyti , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/18] i2c: rk3x: remove printout on handled timeouts In-Reply-To: <20240410112418.6400-33-wsa+renesas@sang-engineering.com> References: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> <20240410112418.6400-33-wsa+renesas@sang-engineering.com> Message-ID: <4bcd397ec377a4932c34d62c85ef28ed@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hello Wolfram, On 2024-04-10 13:24, Wolfram Sang wrote: > 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. Maybe it would be good to turn it into a debug message, instead of simply removing it? Maybe not all client drivers handle it correctly, in which case having an easy way for debugging would be beneficial. > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-rk3x.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-rk3x.c > b/drivers/i2c/busses/i2c-rk3x.c > index 086fdf262e7b..8c7367f289d3 100644 > --- a/drivers/i2c/busses/i2c-rk3x.c > +++ b/drivers/i2c/busses/i2c-rk3x.c > @@ -1106,9 +1106,6 @@ static int rk3x_i2c_xfer_common(struct > i2c_adapter *adap, > spin_lock_irqsave(&i2c->lock, flags); > > if (timeout == 0) { > - dev_err(i2c->dev, "timeout, ipd: 0x%02x, state: %d\n", > - i2c_readl(i2c, REG_IPD), i2c->state); > - > /* Force a STOP condition without interrupt */ > i2c_writel(i2c, 0, REG_IEN); > val = i2c_readl(i2c, REG_CON) & REG_CON_TUNING_MASK;