Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp174338lqb; Tue, 16 Apr 2024 12:04:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlMl63CBOVF35/b5FgybcTsnnSiPy8ny8wRMqev/v9F/sMSPpNRNNuDGa46P92O5mv/lm/CdxjzR9wN1PqUCgTW5bWarx3yGTNaxzfgQ== X-Google-Smtp-Source: AGHT+IF8OGPGAFZtrge8aIf5A4H5ba1fSfZpAax9L4VWc4+FNJ9Aixhsf4ZCgIXl+K+XvjtwTTcf X-Received: by 2002:a05:6a00:3a19:b0:6e7:48e3:7895 with SMTP id fj25-20020a056a003a1900b006e748e37895mr5042131pfb.2.1713294247995; Tue, 16 Apr 2024 12:04:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713294247; cv=pass; d=google.com; s=arc-20160816; b=dE4dv4VWJh14bs10emlFMCTJBU56PCKn5NxbTA6pEBcvvolJqd1fQD5yOKPn83Pfec r1zjNOC0YTm7lAu9N5naCMtUGG3KBWMHJylaGwKjvdXdyOrHGhn3C3r/gMQzxneR8tgD Fd0HNv3oAzzBSitPzr1hVniVBqeSSn7Ax7NbvWORmZ1i1QAjQCu0rirVdvRsLQyb1+8q 6M9PL1r1coghwo0UpsBE7/2+DeDUWQaPxW2mGVU/RSPepNQl75XjcO5cN8hxzzrNy4cb pMpa3qANSpvolpKCNF0rw5mqhlikWukXl6JE1W7iPqE392w631EWJ8gp2qC77ybdStaD BvIQ== 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:to :from:date:dkim-signature; bh=hC6Oj1XpPodc1/h64PHSpFGaph2kot5sHb6qQjvqmss=; fh=bMYkMTKLSR+lmu6kB36qYuvAg89UumVqPTWhO4nHXKo=; b=ZLJ09DKTl8jq4TSYOUT+W6+EL97dDs0tshP3Q6/fsCjvsxPnVguxQ5m5wYgRTiCW0k r9djFY3ViP7bwIzPzCrlZai8FeXivivwdN2TY2jmHNnH6ktIMf5vdIKqvMeA9CWBx8h5 WSeI3pwQcj4eZCHZkdSfTa4n38fMOucwwN8se5tjFqrKXKVvZEuRIiACH9ZhBdSi5D2o Mc3ZZwCxakUlIWALS8Xif0d8YFKbQaTexK1chwTdZ59s7WSeevS0Wda4jM7pfglSqx9C bwI29hIrmdcMbrIzgjrRs33cPNDWxHnaqJRjgMXVnHSgLGLVFg2kW/EZtbzGQCQUXu+w DM/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b5l/mDaJ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147443-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 a28-20020a63705c000000b005dc89648272si10208424pgn.24.2024.04.16.12.04.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:04:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147443-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="b5l/mDaJ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147443-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 E99DF283181 for ; Tue, 16 Apr 2024 19:04:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2709D137766; Tue, 16 Apr 2024 19:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b5l/mDaJ" 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 42947137916; Tue, 16 Apr 2024 19:02:58 +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=1713294179; cv=none; b=qOxX8WPxhcwIt09HD/gLt/2xyQBuZeNtrFgd4mZxv8Qvv9RvYAnJWwRvDGLmZHe19t+EDQ4OaD/uKcJvxZcyXKFpToIzD6L+rXF1YpHeGT97rhEK5F8Nmw7FQkOJuls90y55nOhBmOyBk6HcGLYOkfmfkP1+c6OGSHxnDtXD/gc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294179; c=relaxed/simple; bh=ymLn4ViqJi6azNlarzfVSe+0BD6thD1UTD9JMNYrPbA=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZoQIBKOGBdXznYRPa3gzFlQ/2f1ubUeKCnHpd/ZRrDckjGZoOMcvvG88hXE8bdOOmEWzz4Un8F5o1i6k+Pg3pLXk+/4DGvfpTfmDlGxQiwX2DyJ5WOrg57DbMCoRkdDG2UY8s7axLED8eSGxpePpIet8VwiWKvTz5NuNok2AFw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b5l/mDaJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B4D6C32781; Tue, 16 Apr 2024 19:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713294178; bh=ymLn4ViqJi6azNlarzfVSe+0BD6thD1UTD9JMNYrPbA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=b5l/mDaJZMTRccDQU4oHPPsiNUGhNVjwt5i3LJfiFvJ1YIe4JWS7ccHxJbPQhP+rD J/79Uqz96QG3JYUoyAjJZvKdAIF0seIEzlK3r6+96vq5miomFqbEdksH/nd1/CpvOJ bDgSRndgM/MYoFTFba31wgTREhjmD7o4jIGezKSjI0jy+vBIz2dyDnTeQfqEnV5L78 Emztim/IwxeIc6VF0RCvge7DcLl83r7wC32fogZHYf1kQ3ut6pFZXEDTgbDFLdiOR8 JtjXsJAPJFlP67O/F7i0R2IofsZmbOuiCRiJRfybCPCu4TZE5MVxrCrZshifvqXqiP ePxtnDOoJQDdA== Date: Tue, 16 Apr 2024 21:02:54 +0200 From: Andi Shyti To: Wolfram Sang , Heiko =?utf-8?Q?St=C3=BCbner?= , Dragan Simic , linux-i2c@vger.kernel.org, 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 Message-ID: References: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> <8358604.T7Z3S40VBb@diego> 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: Hi, On Sat, Apr 13, 2024 at 04:35:06PM +0200, Wolfram Sang wrote: > > Also we're talking about two lines of code, I wouldn't call that bloat ;-) > > With this patch, yes. But once you allow debug code, it is hard to draw > a line which debug is still okay and which is too fine-grained. And then > you end up with a lot. Over the years, I developed the tendency to try > to have less but meaningful error printouts. But I don't enforce it > strictly because it is too much bike-shedding discussion. > > In case of this error printout here, it is just wrong. But, see, it also > came from this tendency I don't like to have printouts for every error. I agree with Wolfram here. Debug messages are OK if they are providing real useful information to a final product. Besides, as I explained earlier, the patter: dev_dbg("timed out") return -ETIMEDOUT; (print a debug but return error) doesn't make much sense. But, I this is all personal preference. So that I can also leave it to the specific maintainer. From my side all patches in this series are r-b'ed, except for patch 6 where there are 3 dev_dbg in a row stating the same thing. Thanks Dragan and Heiko for your feedback. Andi