linux/drivers/staging/imx-drm
Shawn Guo bfe945c8e1 imx-drm: imx-drm-core: add basic suspend/resume support
HDMI currently stops working after a system suspend/resume cycle.  The
cause is that the mode setting states in hardware gets lost and isn't
restored across the suspend/resume cycle.

The patch adds a very basic suspend/resume support to imx-drm driver,
and calls drm_helper_resume_force_mode() in .resume hook to restore the
mode setting states, so that HDMI can continue working after a system
suspend/resume cycle.

Since the suspend/resume hook can be called with drm_device pointer
being NULL from driver data, we need a check on the pointer in the
hooks.  And to avoid using a stale pointer from driver data, it also
clears driver data in .unload hook.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 23:36:27 -07:00
..
imx-drm-core.c imx-drm: imx-drm-core: add basic suspend/resume support 2014-09-23 23:36:27 -07:00
imx-drm.h drm: make mode_valid callback optional 2014-04-22 11:18:12 +02:00
imx-hdmi.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-06-12 11:32:30 -07:00
imx-hdmi.h
imx-ldb.c imx-drm: imx-ldb: fix NULL pointer in imx_ldb_unbind() 2014-09-08 12:10:28 -07:00
imx-tve.c staging: imx-drm: fix a blank line coding style issue 2014-08-16 12:23:12 -07:00
ipuv3-crtc.c staging: imx-drm: Lines over 80 characters fixed. 2014-08-30 14:06:48 -07:00
ipuv3-plane.c imx-drm: ipuv3-plane: remove function ipu_plane_dpms() 2014-09-23 23:36:27 -07:00
ipuv3-plane.h
Kconfig gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging 2014-06-04 11:06:52 +02:00
Makefile gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging 2014-06-04 11:06:52 +02:00
parallel-display.c Staging: imx-drm: Fix line over 80 characters warning 2014-09-23 20:25:29 -07:00
TODO staging: imx-drm: Update TODO 2014-03-07 16:18:01 +00:00