Skip to content

Commit a91d0e7

Browse files
openedevdaeinki
authored andcommitted
drm: panel: Enable prepare_prev_first flag for samsung-s6e panels
Enable the drm panel prepare_prev_first flag so-that the previous controller should be prepared first before the prepare for the panel is called. samsung-s6e3ha2, samsung-s6e63j0x03 and samsung-s6e8aa0 are the effected samsung-s6e panels for this change. This makes sure that the previous controller, likely to be a DSI host controller should be initialized to LP-11 before the panel is powered up. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 68de345 commit a91d0e7

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ static int s6e3ha2_probe(struct mipi_dsi_device *dsi)
733733

734734
drm_panel_init(&ctx->panel, dev, &s6e3ha2_drm_funcs,
735735
DRM_MODE_CONNECTOR_DSI);
736+
ctx->panel.prepare_prev_first = true;
736737

737738
drm_panel_add(&ctx->panel);
738739

drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
463463

464464
drm_panel_init(&ctx->panel, dev, &s6e63j0x03_funcs,
465465
DRM_MODE_CONNECTOR_DSI);
466+
ctx->panel.prepare_prev_first = true;
466467

467468
ctx->bl_dev = backlight_device_register("s6e63j0x03", dev, ctx,
468469
&s6e63j0x03_bl_ops, NULL);

drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi)
10161016

10171017
drm_panel_init(&ctx->panel, dev, &s6e8aa0_drm_funcs,
10181018
DRM_MODE_CONNECTOR_DSI);
1019+
ctx->panel.prepare_prev_first = true;
10191020

10201021
drm_panel_add(&ctx->panel);
10211022

0 commit comments

Comments
 (0)