drm/mxsfb: Add PM_SLEEP support
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 17 Sep 2018 13:42:14 +0000 (16:42 +0300)
committerStefan Agner <stefan@agner.ch>
Wed, 26 Sep 2018 20:07:40 +0000 (22:07 +0200)
commitf0525a1c922eefe8cb1a23a026ea90bad400797e
tree5886f8809630d2903524cf50f078e0215d9e9585
parent4201f4e8484509499a40feb9fd6a6642f453f61e
drm/mxsfb: Add PM_SLEEP support

Since power to the lcdif block can be lost on suspend implement
PM_SLEEP_OPS using drm_mode_config_helper_suspend/resume to save/restore
the current mode.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/cfa1a4083eefd112362e640deeb2e120584ac3f5.1537191359.git.leonard.crestez@nxp.com
drivers/gpu/drm/mxsfb/mxsfb_drv.c