Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp151046lqg; Wed, 10 Apr 2024 20:08:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnZ0EI36mmdKHpZermknbmdDb6Q3AT2Lgdhn8s0si7R13Vql+3VqhTPPQLfbqjpnt8Lp2Vr7VnVgGC5alKbUAkFJgoHGJSR4DPs8FY3Q== X-Google-Smtp-Source: AGHT+IGINjE+haPoF4wxIcjCS6lMow3nBY94XYw7YQX2WqW3dNXjQru2Km6hFeKAg3vAHrYNbgOx X-Received: by 2002:a05:6a00:1307:b0:6ed:41f3:cd09 with SMTP id j7-20020a056a00130700b006ed41f3cd09mr4661767pfu.8.1712804889887; Wed, 10 Apr 2024 20:08:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712804889; cv=pass; d=google.com; s=arc-20160816; b=GXQKeAYOLPxxWoxiIWKJnhk+ODMY8Tor98dUYOuDF0eh0BHAuHl31JVYOUH+1sCl+g ujePXF2bptfDL6dtFaEp6QDUTCwU3eH1bCmvZ8e3CtTXABHpkiabc2Oy2u3Sk+IV3iAh hAZxXLkeZElrNex5iyKYSmbAWe46uGSENlQVz4fxOmC+cl5dpHrl1EaRhQP5/bjBAwM/ 9tkQZ2UNdL/0fQO0XOLWQavKqgSYuVjEGNvAU0I/LXP4tRlSvVJipo/HLgfoWjP47P3w 5APpn7MVEfgJyVLaDHNGZ9gopmGfwoq1YfPR18Dvr0HHlvvT3S1LQcoKy5TdPL+Zsxd7 k/CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rp+xtpYC7djYwTC2/2ARPcYjOMH3AzsoegRNvaQ/93U=; fh=sX4sOHq2oBsVyOb2bnoOyVAREmTHLUBEwBvLOmsoTL4=; b=NjGNLjttxZB5x0Wv0WrsGxTYe/Kqae1nH2S89lFVTVAV1AzlDIhnvhZB0p00rm+eTG QhPJHkRtVBA4XR+lCnwZZiR6AA/M3302G3Y5I9Hx7pmcxcqRPIMWUjXkZOsw5xeODHyw /HtuWZ6O3fsmoaklTI7ncxbLHVI0ac4dk0MlXV7Io3ipHAUjoXqy8St10R0slsg7Bk/d RGtiXqcaZ2GA87Rci+d76yGBVXoVavIXpfEHwYJ9Ik3St0Pc4WKm9rROFPrHnacdjdkJ cqtR0veiug4Q8ZW8dT5+JFnrtUdmJuRJxYfBEaGi9LrWr5QiDH0RvNoysuOazbShZjFC UDXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBDMuOfk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f4-20020a63e304000000b005dc918631dfsi428944pgh.122.2024.04.10.20.08.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 20:08:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBDMuOfk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 3F67828C168 for ; Thu, 11 Apr 2024 03:08:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7E5F13B78F; Thu, 11 Apr 2024 03:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rBDMuOfk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EBABB13B5B2; Thu, 11 Apr 2024 03:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712804882; cv=none; b=Zfm6z95OYd3jrLdgeOn2Iv2VDjxv67oGuvr+QLgJqkAEEqFlnI2nwBg/W8l3gKwjrt2WfRHJYbs9LFnexmb/8qDX9+u5m2cqz17EiPSeEBtVyvqzUANf/2UZ2vUdC+O1yiyDmB92OCHyOKcBXvCnN5wfCyVC5S6BGaigofhXswI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712804882; c=relaxed/simple; bh=nIkVgvNu6ktxnbrIY/V2KS8zZFhOpatS2A7hVJTR3Ps=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=By3yYg1j5L/us0POzOjf4BnWyFjaGpdCf7mcl+sk/OpAnHKNxa/16vyZabRFTOr/TYze0o9yy/U3AOgWCha28CnQqPu0wWHdb36FFmJzPPW5KAHL7uQdB6GAt6Gc6AlGrI246d/0DHYwnQL9qDxONWWDZF4UmCSZIJ3CQIe1ZuY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rBDMuOfk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 026A3C433C7; Thu, 11 Apr 2024 03:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712804881; bh=nIkVgvNu6ktxnbrIY/V2KS8zZFhOpatS2A7hVJTR3Ps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rBDMuOfk9Ar/4I5dmjD3gbILprvgKZD9nO8wIxS+Zwx7njEC83h2AJQK2Vz1kBr+Q 8/RQjU/0lQj7fhPgr5lfuepc5Be4i6cAd3ZobNKa4otsQgO5GkAXKCJuz2q1CRqNEg LNBzX70DAMz4SYUQZd6hdDjTyuNehDoXbnYI4q9tn9PPsURfjoOJ7H8XoaaMxIzimV XYWjD5gAZ92JuYS31JmpcbRDBtmu1ShxP1rPsxG6BwWRIag6Ihhydky/kEeWAh7r9r qo90OfOCkCVF4JBynfSotg+uvKOCtZHwxilRZK1vjqs9F/5adRGzsOaF0n/sadaza/ BKGrUJKywL53A== Date: Wed, 10 Apr 2024 22:07:59 -0500 From: Bjorn Andersson To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Konrad Dybcio , Andi Shyti , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/18] i2c: qcom-geni: remove printout on handled timeouts Message-ID: References: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> <20240410112418.6400-31-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240410112418.6400-31-wsa+renesas@sang-engineering.com> On Wed, Apr 10, 2024 at 01:24:25PM +0200, 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. > > Signed-off-by: Wolfram Sang Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/i2c/busses/i2c-qcom-geni.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > index 11dcfcf13d8b..6054c62cd2ff 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > @@ -642,11 +642,8 @@ static int geni_i2c_gpi_xfer(struct geni_i2c_dev *gi2c, struct i2c_msg msgs[], i > dma_async_issue_pending(gi2c->tx_c); > > timeout = wait_for_completion_timeout(&gi2c->done, XFER_TIMEOUT); > - if (!timeout) { > - dev_err(gi2c->se.dev, "I2C timeout gpi flags:%d addr:0x%x\n", > - gi2c->cur->flags, gi2c->cur->addr); > + if (!timeout) > gi2c->err = -ETIMEDOUT; > - } > > if (gi2c->err) { > ret = gi2c->err; > -- > 2.43.0 >