drm: Fix rm68200 panel shutdown on nwl-dsi
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/bridge: nwl-dsi: Move DSI host disablement to ->atomic_post_disable()drivers/ | +3 | 0 replies | |
| 2/2 | drm/panel: raydium-rm68200: Set prepare_prev_firstdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] drm: Fix rm68200 panel shutdown on nwl-dsi
The Raydium RM68200 panel sends MIPI_DCS_SET_DISPLAY_OFF and MIPI_DCS_ENTER_SLEEP_MODE from its unprepare() callback. On i.MX8MQ with the nwl-dsi host, those commands never reach the panel, because nwl-dsi has already shut down the DSI controller and PHY by then.
Two changes are needed, one on each side of the link:
Patch 1 moves the nwl-dsi shutdown from ->atomic_disable() to ->atomic_post_disable(). On its own this does not change the outcome, since the default bridge ordering still runs the host's post_disable before the panel's.
Patch 2 sets prepare_prev_first on the RM68200 panel, so that the panel is unprepared before the DSI host bridge's post_disable. On its own this does not help on nwl-dsi either, since the link is torn down earlier, in ->atomic_disable().
With both applied, the panel sends its shutdown commands while the link is still up. Neither patch is expected to regress anything on its own, and they touch separate drivers, so they can be applied independently.
Patch 2 also changes the prepare/unprepare ordering on the only upstream user of this panel, stm32mp157c-ev1 with the STM32 DSI host. That host enables the link in ->atomic_pre_enable() and disables it in ->atomic_post_disable(), so the new ordering should be correct there as well, but I have not been able to test it on that board.
Liu Ying (1):
drm/bridge: nwl-dsi: Move DSI host disablement to
->atomic_post_disable()
Stefan Ghetu (1):
drm/panel: raydium-rm68200: Set prepare_prev_first
drivers/gpu/drm/bridge/nwl-dsi.c | 6 +++--- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-)
base-commit: c03c1a14507dfaf8b856c2608f9ac216021fc222
Signature · 1 line
2.53.0