]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/exynos: Fix locking in the suspend/resume paths
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 14 Sep 2017 12:01:00 +0000 (14:01 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:14 +0000 (16:20 -0500)
commit93a7a6100ed8099ac257819e32e2333a2c3eeeaf
treede46018672e1eae174a158c7ae715dc5bc51da21
parent3e3afc276048ac1323a9a3cce41cce494af8e74f
drm/exynos: Fix locking in the suspend/resume paths

BugLink: http://bugs.launchpad.net/bugs/1721777
commit 5baf6bb0fd2388742a0846cc7bcacee6dec78235 upstream.

Commit 48a92916729b ("drm/exynos: use drm_for_each_connector_iter()")
replaced unsafe drm_for_each_connector() with drm_for_each_connector_iter()
and removed surrounding drm_modeset_lock calls. However, that lock was
there not only to protect unsafe drm_for_each_connector(), but it was also
required to be held by the dpms code which was called from the loop body.
This patch restores those drm_modeset_lock calls to fix broken suspend
and resume of Exynos DRM subsystem in v4.13 kernel.

Fixes: 48a92916729b ("drm/exynos: use drm_for_each_connector_iter()")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c