Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2959437rdb; Fri, 22 Sep 2023 13:21:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFK4W2hCQggM1JYoIRJ6oyu9ULDHSzJSRepA6sYrmUb9fH/oUWyYv5TJDH4SU4/g4dCHGFU X-Received: by 2002:a05:6a20:9496:b0:148:c3ea:fb6c with SMTP id hs22-20020a056a20949600b00148c3eafb6cmr582447pzb.36.1695414104051; Fri, 22 Sep 2023 13:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695414104; cv=none; d=google.com; s=arc-20160816; b=LbAgvOGU0t/RI7NUdhb5vrIUvjlxjWMKrvMemQ0f3yulEQtfDS53R41Qo9FxVpKMYv sUprFIYuVowJCrXZRyEhzqmOMjPFZbFoT48HAS6NyHjSBf3BgzkVSSsYBpuNKFQUcTaz fShVityldjzTfVQqzuXzXyiQYEfdnDmZ1Ql7W4KkfZDr9FtKFlHgsPC2xJ4vU9F5pBzu U+4Y+jQljSqsSDPgyGi6b9eS7envw5VtW0nqa7E9TOAbbSg9IkIzF7CthQEB4+fK6kfP XkbQ0p2Q+UaX/OqAqjNjx3/foISN/pIUasVxu/BvIfhyPlyTxnZcY9M/sTg1CjBk5G3/ 2z3g== 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=FH2sKxm75IzzLbe+J4ZhCGu+2GwVXTp41FdAmBlASm0=; fh=WNe7zmnnYIz1//JLnkIjCNd4D9teCjEfpgz7Q4LqkX0=; b=vBiaxgJQFVuNhpwN2Dl2ySZki1AUZ0xwVdx0WibGWpDpayNGgQ3R9KJSOcQst7YXnG We6BXZV2Q/ZpzhKB/mzNzHY+xzb2cpOcOMfAwxs46TgYcgjMUd2xtOwfnbkpTiLLf95p UWO/eifAAzaP6Bt0VU9no1PVl5BGQEIVJUMyQeTgpbzJLQ50oX4Cwpbbz9izY9hv9atA GlwJ+Hl5PvnEthJ2YHAe3ZjjkB5PeOhISyTY+kBtQb91CyYZLw+IhwUF7/Ve5Pt/yLwh /cttxJuZ79MLXF8MpB7snO6rWZEqWOg0cnHAyoRgIkIiO+RrCXk7UvVI41fHssnWoJkp aFAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="Ct7MuQZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z7-20020a056a001d8700b0068e26ca7f00si4326384pfw.39.2023.09.22.13.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 13:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="Ct7MuQZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 16885836F430; Fri, 22 Sep 2023 08:18:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbjIVPSg (ORCPT + 99 others); Fri, 22 Sep 2023 11:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232620AbjIVPSd (ORCPT ); Fri, 22 Sep 2023 11:18:33 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 736F3122; Fri, 22 Sep 2023 08:18:27 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 04FE5968; Fri, 22 Sep 2023 17:16:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1695395808; bh=2J9SlBU+ytt0y3KvMFmzHUbWbCAyEXh4/rzIlFpUB0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ct7MuQZ/eQBmDokZWM1/hhuJFkZMWrbUO5xFmdhrmhCaxW1seVYTzX/OLB4sj4aVS xIw1Fa8XJ7OYNKIviYH9lf91nEnJk23dfvEDtzC8Gj8gjIlZ2HpCGyFj0YAzDM40jJ +Az23dSDP0ZyqhxCsO2maTWGxd2oOT3XWV+RsVVQ= Date: Fri, 22 Sep 2023 18:18:38 +0300 From: Laurent Pinchart To: Martijn Braam Cc: Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: rkisp1: Promote link validation error to dev_err Message-ID: <20230922151838.GA22696@pendragon.ideasonboard.com> References: <20230719145534.9812-1-martijn@brixit.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230719145534.9812-1-martijn@brixit.nl> 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, URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 08:18:35 -0700 (PDT) Hi Martijn, Thank you for the patch. On Wed, Jul 19, 2023 at 04:55:33PM +0200, Martijn Braam wrote: > Show an error when the pipeline cannot start due to an invalid link > instead of hiding it behind the debugging system. While this can help debugging issues in applications, allowing unpriviledged applications to control messages being printed to the kernel log is frowned upon, is it could flood the log. This is why these messages use dev_dbg() and not dev_err(). > Signed-off-by: Martijn Braam > --- > drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > index 8f3cba319762..9361b9086f6b 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > @@ -1340,7 +1340,7 @@ static int rkisp1_capture_link_validate(struct media_link *link) > if (sd_fmt.format.height != cap->pix.fmt.height || > sd_fmt.format.width != cap->pix.fmt.width || > sd_fmt.format.code != fmt->mbus) { > - dev_dbg(cap->rkisp1->dev, > + dev_err(cap->rkisp1->dev, > "link '%s':%u -> '%s':%u not valid: 0x%04x/%ux%u != 0x%04x/%ux%u\n", > link->source->entity->name, link->source->index, > link->sink->entity->name, link->sink->index, -- Regards, Laurent Pinchart