drm: cirrus: add power management support
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 14 Apr 2014 09:34:48 +0000 (11:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:59:46 +0000 (13:59 +0200)
commitec2d1018b19afeedaba7e0aff6ccd0f0c73c00e4
tree4fd4032e02c0c5de5035dfaf71612cf4dad1f02b
parent5da302cfd0307be7c3419d79ae5afb819358f388
drm: cirrus: add power management support

commit 2f1e800799bf478494cec3573cd63eb34ca89c9d upstream.

cirrus kms driver lacks power management support, thus
the vga display doesn't work any more after S3 resume.

Fix this by adding suspend and resume functions.
Also make the mode_set function unblank the screen.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/cirrus/cirrus_drv.c
drivers/gpu/drm/cirrus/cirrus_mode.c