All of lore.kernel.org
 help / color / mirror / Atom feed
From: Osama Abdelkader <osama.abdelkader@gmail.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: Maxime Ripard <mripard@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Jessica Zhang <jesszhan0024@gmail.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Jerry Han <hanxu5@huaqin.corp-partner.google.com>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/6] drm/panel: Use devm_mipi_dsi_attach in BOE panels
Date: Wed, 12 Aug 2026 16:23:08 +0200	[thread overview]
Message-ID: <anyBzAO1VSjMKhlz@osama> (raw)
In-Reply-To: <DKN0ETWJ22OV.3QPJV5URU6GSY@bootlin.com>

On Wed, Aug 12, 2026 at 03:45:59PM +0200, Luca Ceresoli wrote:
> Hello,
> 
> On Wed Aug 12, 2026 at 3:26 PM CEST, Maxime Ripard wrote:
> > On Wed, Aug 12, 2026 at 03:04:18PM +0200, Osama Abdelkader wrote:
> >> Use the managed MIPI DSI attach helper in BOE panel drivers and drop the
> >> corresponding manual detach calls from remove paths.
> >>
> >> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> >>
> >> ---
> >> v3:
> >> - Move the changelog after the `---`.
> >>
> >> v2:
> >> - break long description lines.
> >> - add Signed-off-by tag
> >>
> >>  drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c       | 8 +-------
> >>  drivers/gpu/drm/panel/panel-boe-himax8279d.c         | 8 +-------
> >>  drivers/gpu/drm/panel/panel-boe-td4320.c             | 8 +-------
> >>  drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 4 +---
> >>  drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c       | 8 +-------
> >>  drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c       | 7 +------
> >>  6 files changed, 6 insertions(+), 37 deletions(-)
> >>
> >> diff --git a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> >> index 84c21c62a43e..6a74523a6614 100644
> >> --- a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> >> +++ b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> >> @@ -359,7 +359,7 @@ static int boe_bf060y8m_aj0_probe(struct mipi_dsi_device *dsi)
> >>
> >>  	drm_panel_add(&boe->panel);
> >>
> >> -	ret = mipi_dsi_attach(dsi);
> >> +	ret = devm_mipi_dsi_attach(&dsi->dev, dsi);
> >>  	if (ret < 0) {
> >>  		dev_err(dev, "Failed to attach to DSI host: %d\n", ret);
> >>  		return ret;
> >> @@ -371,12 +371,6 @@ static int boe_bf060y8m_aj0_probe(struct mipi_dsi_device *dsi)
> >>  static void boe_bf060y8m_aj0_remove(struct mipi_dsi_device *dsi)
> >>  {
> >>  	struct boe_bf060y8m_aj0 *boe = mipi_dsi_get_drvdata(dsi);
> >> -	int ret;
> >> -
> >> -	ret = mipi_dsi_detach(dsi);
> >> -	if (ret < 0)
> >> -		dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
> >> -
> >>  	drm_panel_remove(&boe->panel);
> >>  }
> >
> > mipi_dsi_detach is now called after drm_panel_remove. Your commit log
> > should mention it, and explain why it's not a concern.
> 
> Indeed. Or switch from drm_panel_add() to devm_drm_panel_add(), which would
> avoid the issue mentioned by Maxime and cleanup even more the code.
> 
> Luca
> 
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

Thanks for the reviews, I updated that in v4.
Best regards,
Osama

      reply	other threads:[~2026-08-12 14:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12 13:04 [PATCH v3 1/6] drm/panel: Use devm_mipi_dsi_attach in BOE panels Osama Abdelkader
2026-08-12 13:04 ` [PATCH v3 2/6] drm/panel: Use devm_mipi_dsi_attach in Samsung panels Osama Abdelkader
2026-08-12 13:04 ` [PATCH v3 3/6] drm/panel: Use devm_mipi_dsi_attach in Novatek and Raydium panels Osama Abdelkader
2026-08-12 13:16   ` sashiko-bot
2026-08-12 13:04 ` [PATCH v3 4/6] drm/panel: Use devm_mipi_dsi_attach in Himax and Ilitek panels Osama Abdelkader
2026-08-12 13:13   ` sashiko-bot
2026-08-12 13:04 ` [PATCH v3 5/6] drm/panel: Use devm_mipi_dsi_attach in display vendor panels Osama Abdelkader
2026-08-12 13:12   ` sashiko-bot
2026-08-12 13:04 ` [PATCH v3 6/6] drm/panel: Use devm_mipi_dsi_attach in assorted panels Osama Abdelkader
2026-08-12 13:18   ` sashiko-bot
2026-08-12 13:13 ` [PATCH v3 1/6] drm/panel: Use devm_mipi_dsi_attach in BOE panels sashiko-bot
2026-08-12 13:26 ` Maxime Ripard
2026-08-12 13:45   ` Luca Ceresoli
2026-08-12 14:23     ` Osama Abdelkader [this message]

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=anyBzAO1VSjMKhlz@osama \
    --to=osama.abdelkader@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hanxu5@huaqin.corp-partner.google.com \
    --cc=jesszhan0024@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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.