drm/atmel-hlcdc: Fix suspend/resume implementation
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 1 Mar 2017 12:31:01 +0000 (13:31 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 16 Mar 2017 10:23:59 +0000 (11:23 +0100)
commit99ed4d7eb2870ef114b3a1309836d021005e4292
tree07635d2867ad18187ca2bcc8bb22709e33fb6656
parent82c8e025b577a4b9b87fbbc2a1c4dd401e3a2521
drm/atmel-hlcdc: Fix suspend/resume implementation

The current suspend resume implementation is assuming register values are
kept when entering suspend, which is no longer the case with the
suspend-to-RAM on the sama5d2.

While at it, switch to the generic infrastructure to enter suspend mode
(drm_atomic_helper_suspend/resume()).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1488371461-22243-1-git-send-email-boris.brezillon@free-electrons.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h