OSDN Git Service

drm/meson: add resume/suspend hooks
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 27 Aug 2019 09:58:25 +0000 (11:58 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 28 Aug 2019 09:17:59 +0000 (11:17 +0200)
commitcf3d4e534711059f77884697dc93b97d60a4ed9f
tree29f8e9e58a48175276e949e12593bfdb3a37a753
parent1374b8375c2efb75da8c8ac2638a91c11313262e
drm/meson: add resume/suspend hooks

Add the suspend and resume hooks to:
- save and disable the entire DRM driver on suspend
- re-init the entire VPU subsystem on resume, to recover CRTC and pixel
generator functionnal usage after DDR suspend, then recover DRM driver
state

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827095825.21015-3-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_drv.c