From: sashiko-bot@kernel.org
To: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/4] drm/bridge: ite-it66121: simplify getting the chip IDs
Date: Fri, 27 Nov 2026 11:31:03 +0000 [thread overview]
Message-ID: <sashiko-outbox-237240@kernel.org> (raw)
In-Reply-To: <20261127-drm-ite-it66121-log-probe-errors-v2-2-dbe9b5a3c5df@bootlin.com>
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 <luca.ceresoli@bootlin.com>
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-dbe9b5a3c5df@bootlin.com?part=2
next prev parent reply other threads:[~2026-11-27 11:31 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 [this message]
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
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-237240@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.