drm/tegra: Implement subsystem-level suspend/resume
authorThierry Reding <treding@nvidia.com>
Tue, 11 Aug 2015 11:11:49 +0000 (13:11 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 14 Dec 2015 09:50:39 +0000 (10:50 +0100)
commit986c58d1625df222c6148c1dc72e59fbf96ef75e
tree28de546e7a1aee38e62c2ddfc8b7b827c23358bb
parent01b9bea0c2616e92334cfa3e052862527bf25d36
drm/tegra: Implement subsystem-level suspend/resume

Use the drm_atomic_helper_suspend() and drm_atomic_helper_resume()
helpers to implement subsystem-level suspend/resume.

v2: suspend framebuffer device to avoid concurrency issues
v3: resume fbdev on failure to suspend (Emil Velikov)

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/fb.c