From: sashiko-bot@kernel.org
To: mohit.dsor@oss.qualcomm.com
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v15 2/2] drm/bridge: Add Lontium LT9611C(EX/UXD) MIPI DSI to HDMI driver
Date: Tue, 15 Sep 2026 12:47:24 +0000 [thread overview]
Message-ID: <20260915124725.11D981F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260915-lt9611c-v7-v15-2-88f9e9387eab@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] drm/bridge: lt9611c: incorrect interrupt clear logic toggles unhandled bits
- [Medium] drm/bridge: lt9611c: missing delay after reset deassertion on suspend error path
--
commit 1c8b096eca4758947d0ce62950c84436cc31f839
Author: Sunyun Yang <syyang@lontium.com>
drm/bridge: Add Lontium LT9611C(EX/UXD) MIPI DSI to HDMI driver
This commit introduces the driver for the Lontium LT9611C(EX/UXD) DSI to
HDMI bridge, supporting conversion of single or dual MIPI DSI to HDMI.
> diff --git a/drivers/gpu/drm/bridge/lontium-lt9611c.c b/drivers/gpu/drm/bridge/lontium-lt9611c.c
> --- /dev/null
> +++ b/drivers/gpu/drm/bridge/lontium-lt9611c.c
[ ... ]
> @@ -758,26 +758,26 @@ static irqreturn_t lt9611c_irq_thread_handler(int irq, void *dev_id)
> if (!(irq_status & BIT(0)))
> return IRQ_NONE;
>
> /* Clear interrupt: hardware requires two writes with delay */
> regmap_write(lt9611c->regmap, 0xe0df, irq_status & BIT(0));
> usleep_range(10000, 12000);
> regmap_write(lt9611c->regmap, 0xe0df, irq_status & (~BIT(0)));
[Severity: High]
Can this second write unintentionally clear or toggle other pending
interrupts?
When clearing BIT(0), writing irq_status & (~BIT(0)) to the register
asserts the mask for any other bits that were active in irq_status
during the read. This might leave them in a partially toggled state or
inadvertently clear them without handling their events, potentially
dropping important hardware interrupts like HPD or EDID status.
>
> schedule_work(<9611c->work);
>
> return IRQ_HANDLED;
> }
[ ... ]
> @@ -1193,17 +1193,17 @@ static int lt9611c_bridge_suspend(struct device *dev)
> disable_irq(lt9611c->client->irq);
> cancel_work_sync(<9611c->work);
>
> gpiod_set_value_cansleep(lt9611c->reset_gpio, 1);
>
> ret = regulator_bulk_disable(ARRAY_SIZE(lt9611c->supplies), lt9611c->supplies);
> if (ret) {
> dev_err(lt9611c->dev, "regulator bulk disable failed.\n");
> gpiod_set_value_cansleep(lt9611c->reset_gpio, 0);
> enable_irq(lt9611c->client->irq);
> return ret;
> }
[Severity: Medium]
Is a delay required here before re-enabling the interrupt?
In lt9611c_reset(), the driver uses a 400ms msleep after deasserting the
reset GPIO. Re-enabling the IRQ immediately on this suspend error recovery
path might interact with an uninitialized MCU, which could trigger I2C
timeouts or IRQ storms while the system resumes.
>
> return 0;
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260915-lt9611c-v7-v15-0-88f9e9387eab@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-09-15 12:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 12:33 [PATCH v15 0/2] Subject: Add Lontium LT9611C(EX/UXD) MIPI DSI to HDMI driver mohit.dsor
2026-09-15 12:33 ` [PATCH v15 1/2] dt-bindings: bridge: " mohit.dsor
2026-09-15 12:33 ` [PATCH v15 2/2] drm/bridge: " mohit.dsor
2026-09-15 12:47 ` sashiko-bot [this message]
2026-09-15 13:01 ` Luca Ceresoli
2026-09-15 14:33 ` Mohit Dsor
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=20260915124725.11D981F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=mohit.dsor@oss.qualcomm.com \
--cc=robh@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox