From: sashiko-bot@kernel.org
To: "Kory Maincent" <kory.maincent@bootlin.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 3/3] drm/panel: ilitek-ili9881c: Add Saef SFTO340XC LCD panel
Date: Fri, 04 Dec 2026 17:25:53 +0000 [thread overview]
Message-ID: <sashiko-outbox-250310@kernel.org> (raw)
In-Reply-To: <20261204-feature_sfto340xc-v3-3-2417aeda6126@bootlin.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] drm/panel: ilitek-ili9881c: sfto340xc_desc allows zero-lane DSI
attach
- [Low] drm/panel: ilitek-ili9881c: ambiguous msleep_delay name and
sparse commit log
--
commit 4b933e45a7a7d06f22ea905fd9c78d336f5a6ba9
Author: Kory Maincent <kory.maincent@bootlin.com>
drm/panel: ilitek-ili9881c: Add Saef SFTO340XC LCD panel
This commit adds support for the Saef Technology Limited SFTO340XC LCD
panel to the Ilitek ILI9881C driver, including a new optional post-display-on
delay field in struct ili9881c_desc.
> diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> index a858830c9f520..b090cb2a49725 100644
> --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> @@ -45,6 +45,7 @@ struct ili9881c_desc {
> const unsigned long mode_flags;
> u8 default_address_mode;
> unsigned int lanes;
> + const unsigned int msleep_delay;
> };
[Severity: Low]
This isn't a bug, but msleep_delay names the helper rather than the
transition or unit, while ili9881c_prepare() already has several other
delays; something like post_display_on_delay_ms would be clearer.
The commit message also omits this new delay field and does not explain why
the SFTO340XC panel needs a 100 ms delay after MIPI_DCS_SET_DISPLAY_ON.
[ ... ]
> @@ -3060,6 +3282,15 @@ static const struct ili9881c_desc k101_im2byl02_desc = {
> .lanes = 4,
> };
>
> +static const struct ili9881c_desc sfto340xc_desc = {
> + .init = sfto340xc_init,
> + .init_length = ARRAY_SIZE(sfto340xc_init),
> + .mode = &sfto340xc_default_mode,
> + .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
> + MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS,
> + .msleep_delay = 100,
> +};
[Severity: High]
Can leaving .lanes unset in sfto340xc_desc cause a zero-lane DSI attach?
When a DT node follows the ilitek,ili9881c.yaml binding and omits port or
remote data-lanes, drm_of_get_data_lanes_count_remote() returns an error,
but ili9881c_dsi_probe() only logs a message and still attaches the device
with dsi->lanes == 0:
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c:ili9881c_dsi_probe() {
...
dsi->lanes = ctx->desc->lanes;
if (!dsi->lanes) {
ret = drm_of_get_data_lanes_count_remote(dsi->dev.of_node, 0, -1, 2, 4);
if (ret < 0)
dev_info(&dsi->dev, "No lanes number described");
else if (ret != 2 && ret != 4)
dev_warn(&dsi->dev, "Wrong lanes number");
else
dsi->lanes = ret;
}
...
return devm_mipi_dsi_attach(&dsi->dev, dsi);
}
mipi_dsi_attach() does not reject zero lanes, so DSI hosts such as
vc4_dsi_host_attach() immediately divide by zero (24 / dsi->lanes) during
attach.
Should sfto340xc_desc set .lanes explicitly, or should ili9881c_dsi_probe()
return an error (or fall back to a valid default) when a 2- or 4-lane count
cannot be obtained?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-feature_sfto340xc-v3-0-2417aeda6126@bootlin.com?part=3
next prev parent reply other threads:[~2026-12-04 17:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 17:14 [PATCH v3 0/3] Add support for Saef SFTO340XC panel Kory Maincent
2026-12-04 17:14 ` [PATCH v3 1/3] dt-bindings: ili9881c: Add Saef SFTO340XC support Kory Maincent
2026-12-04 17:14 ` [PATCH v3 2/3] drm/panel: ilitek-ili9881c: Add support for two-lane configuration Kory Maincent
2026-12-04 17:28 ` sashiko-bot
2026-12-04 18:05 ` Kory Maincent
2026-12-04 17:14 ` [PATCH v3 3/3] drm/panel: ilitek-ili9881c: Add Saef SFTO340XC LCD panel Kory Maincent
2026-12-04 17:25 ` sashiko-bot [this message]
2026-12-04 17:52 ` Kory Maincent
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-250310@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kory.maincent@bootlin.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