Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/bridge: ite-it66121: missing linux/unaligned.h include in
  it66121_probe()
--

commit 86dd14ece48e024d13ff3916942d669c127f8cf0
Author: Luca Ceresoli <[email protected]>

drm/bridge: ite-it66121: simplify getting the chip IDs

This commit replaces open-coded bit shifts with get_unaligned_le16() to
compute the vendor and device IDs in it66121_probe() and logs them with
dev_dbg().

> diff --git a/drivers/gpu/drm/bridge/ite-it66121.c 
> b/drivers/gpu/drm/bridge/ite-it66121.c
> index fe3c48df85388..909a21fac8c02 100644
> --- a/drivers/gpu/drm/bridge/ite-it66121.c
> +++ b/drivers/gpu/drm/bridge/ite-it66121.c
> @@ -1570,6 +1570,7 @@ static const struct it66121_chip_info 
> it66xx_chip_info[] = {
>  static int it66121_probe(struct i2c_client *client)
>  {
>       __u8 chip_id_regs[4];
> +     u16 vendor_id, device_id;
>       u32 revision_id;
>       struct device_node *ep;
>       int ret, i;
> @@ -1643,10 +1644,14 @@ static int it66121_probe(struct i2c_client *client)
>       revision_id = FIELD_GET(IT66121_REVISION_MASK, chip_id_regs[3]);
>       chip_id_regs[3] &= IT66121_DEVICE_ID1_MASK;
>  
> +     vendor_id = get_unaligned_le16(&chip_id_regs[0]);
> +     device_id = get_unaligned_le16(&chip_id_regs[2]);

[Severity: High]
Does drivers/gpu/drm/bridge/ite-it66121.c need to include
<linux/unaligned.h> for get_unaligned_le16()?  Without it, the build fails
with an implicit declaration of get_unaligned_le16() on architectures such
as arm64 and x86_64 that do not pull in linux/unaligned.h transitively.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/20261127-drm-ite-it66121-log-probe-errors-v2-0-dbe9b5a3c...@bootlin.com?part=2

Reply via email to