[PATCH 2/8] drm/exynos: fimd: call win_disable only when window is enabled
Prathyush K
prathyush.k at samsung.com
Wed Dec 26 03:27:39 PST 2012
This patch adds a check in fimd_window_suspend to call win_disable
only if the window is enabled.
Signed-off-by: Prathyush K <prathyush.k at samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index bf0d9ba..4d1d9c1 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -852,8 +852,10 @@ static void fimd_window_suspend(struct device *dev)
for (i = 0; i < WINDOWS_NR; i++) {
win_data = &ctx->win_data[i];
- win_data->resume = win_data->enabled;
- fimd_win_disable(dev, i);
+ if (win_data->enabled) {
+ win_data->resume = win_data->enabled;
+ fimd_win_disable(dev, i);
+ }
}
fimd_wait_for_vblank(dev);
}
--
1.8.0
More information about the dri-devel
mailing list