Re: [PATCH] drm/panel: himax-hx83102: restore MODE_LPM after sending disable cmds
From: Doug Anderson
Date: Tue Apr 28 2026 - 12:59:43 EST
Hi,
On Mon, Apr 27, 2026 at 10:49 PM Icenowy Zheng <zhengxingda@xxxxxxxxxxx> wrote:
>
> 在 2026-04-27一的 11:24 -0700,Doug Anderson写道:
> > Hi,
> >
> > On Sat, Apr 25, 2026 at 9:58 AM Icenowy Zheng
> > <zhengxingda@xxxxxxxxxxx> wrote:
> > >
> > > When preparing the panel, it seems that it always expects commands
> > > to be
> > > transferred in LP mode. However, the disable function removes the
> > > MIPI_DSI_MODE_LPM flag, and no other function re-adds it.
> > >
> > > As the unprepare function contains no DSI commands, re-adding the
> > > flag
> > > just after disabling the panel should be safe. Add the code re-
> > > adding
> > > the flag after the two commands for disabling the panel are sent.
> > >
> > > This fixes screen unblanking (after blanking once) on
> > > mt8188-geralt-ciri-sku1 device.
> > >
> > > Cc: stable@xxxxxxxxxxxxxxx # 6.11+
> > > Fixes: 0ef94554dc40 ("drm/panel: himax-hx83102: Break out as
> > > separate driver")
> >
> > This "Fixes" looks wrong. The bug was still there even before the
> > driver was broken out. ...and it looks like the driver that this was
> > broken out of (panel-boe-tv101wum-nl6.c) still has the same bug?
>
> Yes, but I think the fix shouldn't be propagated to the other driver
> because of the same reason with breaking out the original driver.
...but doesn't all the same logic apply to the other driver? Nothing
ever adds MIPI_DSI_MODE_LPM back in.
Even if you don't fix the other driver yourself right now, the proper
"Fixes" tag is when the problem was introduced, not when the driver
forked out.
-Doug