Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13239354rwl; Wed, 4 Jan 2023 05:36:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtNj+9p1yXrPgR5YmtIJYqxp7KY9UxGzJwePbNL/ntAT4iaS8ztCKOBqPkVSyLwHUSExWdR X-Received: by 2002:a17:907:11cf:b0:7c2:3b8a:9f0d with SMTP id va15-20020a17090711cf00b007c23b8a9f0dmr41694147ejb.51.1672839397012; Wed, 04 Jan 2023 05:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672839396; cv=none; d=google.com; s=arc-20160816; b=KV2SgJZF/7ROm5gOGNs529rmww1Jomwqohem7teEKmapk1BJ40chDUNNqQzK1jnqLi WPNoaa13KJyUZqDXWCDslR+1/ZlqwZqygCCkErEulD5Ua9GcFUDjoCN/mP8mA1KdjU4+ BUPcpHhoZsCX6b9iF7Q4aTgBkzllSLEh4z/eJ1XrUy1Vgw0ngrS6VsLPmoWfPX4L0e4A gMerQpHYay2sTbd4wU/nPbp0ozHxZe+dV6Y+ZNq9yYDYhS2cAgzEnbvRQuep6W6ahnk6 BOnU6iQUU1oVlm9Wt1U6Ov++QspSKOFc1gqlh0jd9R+YwHd+G40/REtQ4ZgQVZgH1eNp bMIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AP4Vzw+SopBpsR0Wz4m32+ASUZhtCNtcFt4yTC2PgH8=; b=YCG7/hcYPZi/3PsGh4iXjp93jEtDe+8/EpR1Y5Pcba3gKcuSJ3GQyGSS0VNEj0BkKg 9/N6k9SAWw9dGLtzlhe2F+nFjBp6Klcw6Dp/ej26a9QhJTC17h7GYwLz39b3ZlcFb7mR 91kfQvwNNbsh9rqS3j+bMmabtsrFDCPUHIfYuQkk0KgxuiAcvCzZBWrPsaZRZCM+kR1x DxbvvzICMjjGuI8UkJXhh/YF2cdaaiGtPIZqF/bES+jym1RMZhM3n4tr7ghvtNCb/OeM bKTPjyuMaQx8YwFY+x0N14eEQKfetjlzI524o0dHO9L/TPhUewgCWQdM7GenqQpkatyf J4Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ThWjBZs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709066d5500b007c10d4ceddesi24532858ejt.767.2023.01.04.05.36.23; Wed, 04 Jan 2023 05:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ThWjBZs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239357AbjADNdA (ORCPT + 57 others); Wed, 4 Jan 2023 08:33:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239407AbjADNbf (ORCPT ); Wed, 4 Jan 2023 08:31:35 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11EB6FAD9; Wed, 4 Jan 2023 05:30:04 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 740336F0; Wed, 4 Jan 2023 14:30:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1672839001; bh=uhRldtdvTek1dhMsrtnOwymgShLrF7W4WbCLB82sKks=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ThWjBZs06NtjhtmTCo7Z/VtV6lx8RKIlyGrcoZQ5Yp4ecSP9jpHamz4WC3MjpRbaj 7iQgPFS1EQbvKkZLWzxfvTmlnvjiDz2dDoIa0UF5j+Lx0Dwwai6yD9sV1C6GcWI35c AoTGN6gNMSppceoxpXS5w/IoSzrzerXpcI1TrD3Y= Date: Wed, 4 Jan 2023 15:29:57 +0200 From: Laurent Pinchart To: Andy Shevchenko Cc: Tomi Valkeinen , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Marek Vasut Subject: Re: [PATCH v5 7/8] media: i2c: add DS90UB913 driver Message-ID: References: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> <20221208104006.316606-8-tomi.valkeinen@ideasonboard.com> <4d349785-ca37-d930-db3c-2581bba9fde0@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 27, 2022 at 10:09:43PM +0200, Andy Shevchenko wrote: > On Mon, Dec 26, 2022 at 07:01:11PM +0200, Laurent Pinchart wrote: > > On Wed, Dec 14, 2022 at 08:29:48AM +0200, Tomi Valkeinen wrote: > > > On 11/12/2022 20:33, Laurent Pinchart wrote: > > > > On Thu, Dec 08, 2022 at 12:40:05PM +0200, Tomi Valkeinen wrote: > > ... > > > > >> + dev_dbg(dev, "Bind %s\n", source_subdev->name); > > > > > > > > I'd drop this message. > > +1 here. > > > > Why is that? Do we get this easily from the v4l2 core? These debug > > > prints in the bind/unbind process have been valuable for me. > > > > Because debug messages are not meant to be a tracing infrastructure, and > > because, if we want to keep this message, it would be best handled in > > the v4l2-async core instead of being duplicated across drivers. Same for > > the messages at the end of the function. > > I don't think v4l2 needs debug prints. If we consider the above case, the > ftrace already provides that. If we consider something specific to v4l2 to > trace only critical parts, then trace events should be implemented. V4L2 has no support for trace events, and I agree that they would be useful. It doesn't mean that dev_dbg() is entirely useless though, and sometimes the line between the two isn't very clear. In any case, for this very specific debug message, I don't think it should be printed in individual drivers, but it should be handled in the V4L2 core, either as a debug message or a trace event. -- Regards, Laurent Pinchart