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 <[email protected]>

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-dbe9b5a3c...@bootlin.com?part=4

Reply via email to