From: sashiko-bot@kernel.org
To: "Guangshuo Li" <lgs201920130244@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/panel: ilitek-ili9881c: fix panel cleanup on attach failure
Date: Sun, 13 Sep 2026 10:30:50 +0000 [thread overview]
Message-ID: <20260913103050.94B521F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260913102608.1526916-1-lgs201920130244@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Missing semicolon at the end of the return statement for dev_err_probe, causing a syntax error and build failure.
--
commit 4d6fd7214b6dd880b985f4f7ae888ed25d2fea1a
Author: Guangshuo Li <lgs201920130244@gmail.com>
drm/panel: ilitek-ili9881c: fix panel cleanup on attach failure
This commit replaces drm_panel_add() with devm_drm_panel_add() in
ili9881c_dsi_probe() to ensure the panel registration is correctly removed
upon probe failure or driver teardown. It also removes the redundant
drm_panel_remove() call from the remove callback.
> diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> index c3d5ab67121d9..1a52f92e2963b 100644
> --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
> @@ -2594,7 +2594,9 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
> if (ret)
> return ret;
>
> - drm_panel_add(&ctx->panel);
> + ret = devm_drm_panel_add(&dsi->dev, &ctx->panel);
> + if (ret)
> + return dev_err_probe(&dsi->dev, ret, "Failed to add panel\n")
[Severity: Low]
Does this compile successfully? It looks like the return statement using
dev_err_probe() in ili9881c_dsi_probe() is missing a terminating semicolon,
which would cause a syntax error during the build.
> dsi->mode_flags = ctx->desc->mode_flags;
> dsi->format = MIPI_DSI_FMT_RGB888;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260913102608.1526916-1-lgs201920130244@gmail.com?part=1
next prev parent reply other threads:[~2026-09-13 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-13 10:26 [PATCH] drm/panel: ilitek-ili9881c: fix panel cleanup on attach failure Guangshuo Li
2026-09-13 10:30 ` sashiko-bot [this message]
2026-09-13 19:46 ` kernel test robot
2026-09-13 19:46 ` kernel test robot
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=20260913103050.94B521F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lgs201920130244@gmail.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.