drm: atmel-hlcdc: Add PM suspend/resume support
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Sun, 22 Feb 2015 17:51:03 +0000 (18:51 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 24 Feb 2015 10:23:07 +0000 (11:23 +0100)
commit58486982586da444f940dc8fdea598649b4a2fe8
tree3b5708af263d2fa235ae19b8e7417a2cbe2e67c3
parent5957017db0f62e00c42d5b8d61ac850636be1230
drm: atmel-hlcdc: Add PM suspend/resume support

On suspend: switch off CRTC if not already suspended with runtime PM

On resume: switch on CRTC if we were not already suspended from runtime
PM while suspending.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c