On video-mode MSM DSI hosts with prepare_prev_first set, panel
unprepare() runs after the DPU timing engine has been disabled and
before the DSI host bridge post_disable() resets the video engine.
Sending DCS SET_DISPLAY_OFF in unprepare() therefore times out on every
screen blank/unblank on the SHIFT6mq:

  msm_dsi ae94000.dsi: [drm:dsi_cmds2buf_tx] *ERROR* wait for video done timed 
out
  dsi_cmds2buf_tx: cmd dma tx failed, type=0x5, data0=0x28, len=4, ret=-110
  panel-visionox-rm69299 ae94000.dsi.0: sending DCS SET_DISPLAY_OFF failed: -110

Move only the display-off / enter-sleep DCS commands from unprepare()
into disable() while keeping the power-on and initialization sequence in
prepare() (where the link is in LP11 before video starts), and fold
power_off() into unprepare().

---
Changes in v2:
- Keep power-on and init DSI commands in prepare() instead of moving
  them to enable() (Neil, Dmitry).
- Only fold visionox_rm69299_power_off() into unprepare(), keeping
  visionox_rm69299_power_on() for prepare() (Neil Armstrong).
- Verified on SHIFT6mq across repeated blank/unblank and
  backlight cycles with zero DSI timeouts and no stuck disp_cc clocks.
- Link to v1: 
https://patch.msgid.link/[email protected]

---
Guido Günther (2):
      drm/panel: visionox-rm69299: Move off/sleep DSI commands to disable()
      drm/panel: visionox-rm69299: Move power_off() into unprepare()

 drivers/gpu/drm/panel/panel-visionox-rm69299.c | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20260427-visionox-rm69299-enable-06f3d736f664

Best regards,
--  
David Heidelberg <[email protected]>


Reply via email to