From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: david@ixit.cz
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>,
linux-media@vger.kernel.org
Subject: Re: [PATCH 1/4] media: ccs: Use dev_dbg() instead of dev_err() in ccs_enum_mbus_code()
Date: Mon, 23 Nov 2026 18:53:04 +0200 [thread overview]
Message-ID: <20261123165304.GC2959742@killaraus.ideasonboard.com> (raw)
In-Reply-To: <20261123-ccs-clanked-fixes-v1-1-fb2bcc87a517@ixit.cz>
On Mon, Nov 23, 2026 at 01:02:39PM +0100, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
>
> Commit 63bd19442f08 accidentally converted two dev_dbg() calls in
> ccs_enum_mbus_code() to dev_err(), flooding the kernel log with error
> messages whenever userspace enumerates media bus codes.
>
> Restore them to dev_dbg().
>
> Fixes: 63bd19442f08 ("media: ccs: Use %u for printing unsigned values, remove extra debug print")
According to the git history those have been there since the first
version of the driver (named smiapp back then).
The change is good, the commit message needs an update.
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> drivers/media/i2c/ccs/ccs-core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c
> index c3592317ee575..284cfbd89349c 100644
> --- a/drivers/media/i2c/ccs/ccs-core.c
> +++ b/drivers/media/i2c/ccs/ccs-core.c
> @@ -2104,17 +2104,17 @@ static int ccs_enum_mbus_code(struct v4l2_subdev *subdev,
> struct v4l2_subdev_state *sd_state,
> struct v4l2_subdev_mbus_code_enum *code)
> {
> struct i2c_client *client = v4l2_get_subdevdata(subdev);
> struct ccs_sensor *sensor = to_ccs_sensor(subdev);
> unsigned int i;
> int idx = -1;
>
> - dev_err(&client->dev, "subdev %s, pad %u, index %u\n",
> + dev_dbg(&client->dev, "subdev %s, pad %u, index %u\n",
> subdev->name, code->pad, code->index);
>
> if (subdev != &sensor->src->sd || code->pad != CCS_PAD_SRC) {
> if (code->index)
> return -EINVAL;
>
> code->code = sensor->internal_csi_format->code;
>
> @@ -2122,17 +2122,17 @@ static int ccs_enum_mbus_code(struct v4l2_subdev *subdev,
> }
>
> for (i = 0; i < ARRAY_SIZE(ccs_csi_data_formats); i++) {
> if (sensor->mbus_frame_fmts & BIT_U64(i))
> idx++;
>
> if (idx == code->index) {
> code->code = ccs_csi_data_formats[i].code;
> - dev_err(&client->dev, "found index %u, i %u, code %x\n",
> + dev_dbg(&client->dev, "found index %u, i %u, code %x\n",
> code->index, i, code->code);
> return 0;
> }
> }
>
> return -EINVAL;
> }
>
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2026-11-23 16:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 12:02 [PATCH 0/4] Various CCS fixes David Heidelberg via B4 Relay
2026-11-23 12:02 ` [PATCH 1/4] media: ccs: Use dev_dbg() instead of dev_err() in ccs_enum_mbus_code() David Heidelberg via B4 Relay
2026-11-23 16:53 ` Laurent Pinchart [this message]
2026-11-23 12:02 ` [PATCH 2/4] media: ccs: Fix sub-device index in ccs_cleanup() David Heidelberg via B4 Relay
2026-11-23 16:54 ` Laurent Pinchart
2026-11-23 12:02 ` [PATCH 3/4] media: ccs: Update PLL and blanking limits when pixel_array crop changes David Heidelberg via B4 Relay
2026-11-23 12:02 ` [PATCH 4/4] media: ccs: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flip controls David Heidelberg via B4 Relay
2026-11-23 16:55 ` [PATCH 0/4] Various CCS fixes Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123165304.GC2959742@killaraus.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=david@ixit.cz \
--cc=hverkuil@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox