Skip to content

Commit 406dd4c

Browse files
Marek Vasutsuperna9999
authored andcommitted
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: 849b2e3 ("drm/panel: Add Sitronix ST7701 panel driver") Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Jessica Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f8fd096 commit 406dd4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/panel/panel-sitronix-st7701.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,7 @@ static int st7701_probe(struct device *dev, int connector_type)
11771177
return dev_err_probe(dev, ret, "Failed to get orientation\n");
11781178

11791179
drm_panel_init(&st7701->panel, dev, &st7701_funcs, connector_type);
1180+
st7701->panel.prepare_prev_first = true;
11801181

11811182
/**
11821183
* Once sleep out has been issued, ST7701 IC required to wait 120ms

0 commit comments

Comments
 (0)