drm/exynos: fimd: actually disable dp clock
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 30 Sep 2015 21:40:54 +0000 (18:40 -0300)
committerInki Dae <inki.dae@samsung.com>
Thu, 1 Oct 2015 04:25:11 +0000 (13:25 +0900)
fimd_dp_clock_enable() was setting the always to enabled,
this patch fix this to actually use the value that is set to 'val'.

Reported-by: Emilio López <emilio.lopez@collabora.co.uk>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 03ad549e7698cc3f3913b02c3dc90bb53491a5ff..3d1aba67758baf4a4e25e4c383e300d5a6dd954e 100644 (file)
@@ -871,7 +871,7 @@ static void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable)
                return;
 
        val = enable ? DP_MIE_CLK_DP_ENABLE : DP_MIE_CLK_DISABLE;
-       writel(DP_MIE_CLK_DP_ENABLE, ctx->regs + DP_MIE_CLKCON);
+       writel(val, ctx->regs + DP_MIE_CLKCON);
 }
 
 static const struct exynos_drm_crtc_ops fimd_crtc_ops = {