Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: st7701: Add prepare_prev_first flag to drm_panel

The DSI host must be enabled for the panel to be initialized in
prepare(). Set the prepare_prev_first flag to guarantee this.
This fixes the panel operation on NXP i.MX8MP SoC / Samsung DSIM
DSI host.

Fixes: 849b2e3ff969 ("drm/panel: Add Sitronix ST7701 panel driver")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20241124224812.150263-1-marex@denx.de
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241124224812.150263-1-marex@denx.de

authored by

Marek Vasut and committed by
Neil Armstrong
406dd4c7 f8fd0968

+1
+1
drivers/gpu/drm/panel/panel-sitronix-st7701.c
··· 1177 1177 return dev_err_probe(dev, ret, "Failed to get orientation\n"); 1178 1178 1179 1179 drm_panel_init(&st7701->panel, dev, &st7701_funcs, connector_type); 1180 + st7701->panel.prepare_prev_first = true; 1180 1181 1181 1182 /** 1182 1183 * Once sleep out has been issued, ST7701 IC required to wait 120ms