All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 4/4] drm/bridge: ite-it66121: make successful probe quiet
Date: Fri, 27 Nov 2026 11:32:49 +0000	[thread overview]
Message-ID: <sashiko-outbox-237241@kernel.org> (raw)
In-Reply-To: <20261127-drm-ite-it66121-log-probe-errors-v2-4-dbe9b5a3c5df@bootlin.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] drm/bridge: ite-it66121: missing linux/unaligned.h include in
  it66121_probe()
- [Low] drm/bridge: ite-it66121: duplicate chip ID dev_dbg() in
  it66121_probe()
--

commit 46732f4e982566f4573478b485add2d91b24ff1a
Author: Luca Ceresoli <luca.ceresoli@bootlin.com>

drm/bridge: ite-it66121: make successful probe quiet

This commit converts the final probe message in it66121_probe() from
dev_info() to dev_dbg() and includes vendor_id and device_id in the log
string.

> diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
> index 48f320df8fe77..04e84def2d1b3 100644
> --- a/drivers/gpu/drm/bridge/ite-it66121.c
> +++ b/drivers/gpu/drm/bridge/ite-it66121.c
> @@ -1695,7 +1695,8 @@ static int it66121_probe(struct i2c_client *client)
>  
>  	drm_bridge_add(&ctx->bridge);
>  
> -	dev_info(ctx->dev, "IT66121 revision %d probed\n", revision_id);
> +	dev_dbg(ctx->dev, "IT66121 vendor %04x device %04x revision %d probed\n",
> +		vendor_id, device_id, revision_id);
>  
>  	return 0;
>  }

[Severity: High]
Does drivers/gpu/drm/bridge/ite-it66121.c need to include linux/unaligned.h
for the get_unaligned_le16() calls computing vendor_id and device_id (added
earlier in the series by commit "drm/bridge: ite-it66121: simplify getting
the chip IDs")?

On architectures such as x86_64 and arm64 where asm/uaccess.h does not pull
in linux/unaligned.h transitively, building this driver fails with an
implicit declaration of get_unaligned_le16().

[Severity: Low]
Does this dev_dbg() duplicate the chip ID debug message added earlier in
it66121_probe() by commit "drm/bridge: ite-it66121: simplify getting the
chip IDs"?

drivers/gpu/drm/bridge/ite-it66121.c:it66121_probe() {
    ...
	vendor_id = get_unaligned_le16(&chip_id_regs[0]);
	device_id = get_unaligned_le16(&chip_id_regs[2]);
	dev_dbg(dev, "vendor %04x device %04x (rev %01x)\n", vendor_id, device_id, revision_id);
    ...
}

When dynamic debug is enabled, every successful probe prints both messages
with the same IDs, formatting revision_id in hex (%01x) in the first and in
decimal (%d) in the second.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-drm-ite-it66121-log-probe-errors-v2-0-dbe9b5a3c5df@bootlin.com?part=4

      reply	other threads:[~2026-11-27 11:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 11:20 [PATCH v2 0/4] drm/bridge: ite-it66121: use bulk read, improve probe logging Luca Ceresoli
2026-11-27 11:20 ` [PATCH v2 1/4] drm/bridge: ite-it66121: check for read errors reading IDs Luca Ceresoli
2026-11-27 11:20 ` [PATCH v2 2/4] drm/bridge: ite-it66121: simplify getting the chip IDs Luca Ceresoli
2026-11-27 11:31   ` sashiko-bot
2026-11-27 11:20 ` [PATCH v2 3/4] drm/bridge: ite-it66121: log an error if the IDs do not match Luca Ceresoli
2026-11-27 11:20 ` [PATCH v2 4/4] drm/bridge: ite-it66121: make successful probe quiet Luca Ceresoli
2026-11-27 11:32   ` sashiko-bot [this message]

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=sashiko-outbox-237241@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.