aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_fimd.c
diff options
context:
space:
mode:
authorPrathyush K <prathyush.k@samsung.com>2012-12-27 06:40:13 -0500
committerInki Dae <inki.dae@samsung.com>2013-01-06 23:49:02 -0500
commit28998afa1380a4ba7ad2d5e9a2ab76a15417b8b1 (patch)
treeff46b991f78ed477c7d43c6c0017f12eb823482d /drivers/gpu/drm/exynos/exynos_drm_fimd.c
parent5cbd419cc533a821448fa47fc16f50990eef296f (diff)
drm/exynos: fimd: modify condition in fimd resume
If fimd is runtime suspended (by DPMS OFF), fimd_suspend does not call fimd_activate(false) and just returns. Similarily the check in fimd_resume should not resume if previously runtime_suspended. Instead the existing check does the opposite. So if fimd was not runtime suspended, suspend will turn off fimd but resume will not turn it on. This patch fixes this issue by reversing the condition. Signed-off-by: Prathyush K <prathyush.k@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fimd.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index bf0d9baca2bc..9accd4660840 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -1046,7 +1046,7 @@ static int fimd_resume(struct device *dev)
1046 * of pm runtime would still be 1 so in this case, fimd driver 1046 * of pm runtime would still be 1 so in this case, fimd driver
1047 * should be on directly not drawing on pm runtime interface. 1047 * should be on directly not drawing on pm runtime interface.
1048 */ 1048 */
1049 if (pm_runtime_suspended(dev)) { 1049 if (!pm_runtime_suspended(dev)) {
1050 int ret; 1050 int ret;
1051 1051
1052 ret = fimd_activate(ctx, true); 1052 ret = fimd_activate(ctx, true);