diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2017-09-14 14:01:01 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-09-19 19:50:44 +0900 |
commit | 6e8edf8a7d8d98e1734ff41e5c69439419319402 (patch) | |
tree | 7834cee31827d42a0619003666907ca1c2878406 /drivers/gpu/drm/exynos/exynos_drm_drv.h | |
parent | drm/exynos: Fix locking in the suspend/resume paths (diff) | |
download | linux-dev-6e8edf8a7d8d98e1734ff41e5c69439419319402.tar.xz linux-dev-6e8edf8a7d8d98e1734ff41e5c69439419319402.zip |
drm/exynos: Fix suspend/resume support
Commit 7d902c05b480 ("drm: Nuke drm_atomic_helper_connector_dpms")
removed drm_atomic_helper_connector_dpms() helper saying that it was a dead
code. It was however indirectly used by Exynos DRM driver for implementing
suspend/resume support. To fix this regression (after that patch Exynos DRM
suspend/resume functions became no-ops and hardware fails to suspend),
this patch rewrites them with drm_atomic_helper_suspend/resume() helpers.
Fixes: 7d902c05b480 ("drm: Nuke drm_atomic_helper_connector_dpms")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index cf131c2aa23e..f8bae4cb4823 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -202,6 +202,7 @@ struct drm_exynos_file_private { */ struct exynos_drm_private { struct drm_fb_helper *fb_helper; + struct drm_atomic_state *suspend_state; struct device *dma_dev; void *mapping; |