drm/exynos: modify condition in mixer and hdmi resume
Subsystems (3)
PATCH 1/1 drm/exynos: modify condition in mixer and hdmi resume
From: Prathyush K <[email protected]>
If mixer is runtime suspended (by DPMS OFF), mixer_suspend does not call mixer_poweroff and just returns. Similarily the mixer_resume should not resume the mixer if mixer is runtime_suspended. It should be done through DPMS ON.
The existing check is stopping the resume. This issue is fixed by reversing the condiftion. It also holds good for hdmi driver.
Inline with http://lists.freedesktop.org/archives/dri-devel/2013-January/032920.html.
Signed-off-by Prathyush K <[email protected]>
Signed-off-by Rahul Sharma <[email protected]>
---
It is based on exynos-drm-next-todo branch atgit://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git
drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +1 -1
@@ -2386,7 +2386,7 @@ static int hdmi_resume(struct device *dev)enable_irq (hdata->external_irq);enable_irq (hdata->internal_irq); -if (!pm_runtime_suspended (dev)) { +if (pm_runtime_suspended (dev)) {DRM_DEBUG_KMS ("%s : Already resumed\n" , __func__);return 0 ; }
drivers/gpu/drm/exynos/exynos_mixer.c +1 -1
@@ -1265,7 +1265,7 @@ static int mixer_resume(struct device *dev)DRM_DEBUG_KMS ("[%d] %s\n" , __LINE__, __func__); -if (!pm_runtime_suspended (dev)) { +if (pm_runtime_suspended (dev)) {DRM_DEBUG_KMS ("%s : Already resumed\n" , __func__);return 0 ; }
Signature · 1 line
1.8.0