From: Philipp Zabel Date: Mon, 3 Nov 2014 14:54:47 +0000 (+0100) Subject: imx-drm: parallel-display: Fix drm_panel support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad92c8bfff579165739705235d0909ebc94de2cd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git imx-drm: parallel-display: Fix drm_panel support Call drm_panel_enable/disable in reaction to encoder_commit and encoder_disable callbacks. Signed-off-by: Philipp Zabel Signed-off-by: Markus Pargmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 015a454b87e1..ac89a18b8332 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -128,6 +128,10 @@ static void imx_pd_encoder_prepare(struct drm_encoder *encoder) static void imx_pd_encoder_commit(struct drm_encoder *encoder) { + struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); + + drm_panel_prepare(imxpd->panel); + drm_panel_enable(imxpd->panel); } static void imx_pd_encoder_mode_set(struct drm_encoder *encoder, @@ -138,6 +142,10 @@ static void imx_pd_encoder_mode_set(struct drm_encoder *encoder, static void imx_pd_encoder_disable(struct drm_encoder *encoder) { + struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); + + drm_panel_disable(imxpd->panel); + drm_panel_unprepare(imxpd->panel); } static struct drm_connector_funcs imx_pd_connector_funcs = {