drm/meson: dw_hdmi: add resume/suspend hooks
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 27 Aug 2019 09:58:24 +0000 (11:58 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 28 Aug 2019 09:17:59 +0000 (11:17 +0200)
commit1374b8375c2efb75da8c8ac2638a91c11313262e
treeef10de134e9131e6495fb908a200690dbaa3f0f4
parentb0138364da17617db052c4a738b58bf45e42f500
drm/meson: dw_hdmi: add resume/suspend hooks

Add the suspend and resume hooks to:
- reset the whole HDMI glue and HDMI controller on suspend
- re-init the HDMI glue and HDMI controller on resume

The HDMI glue init is refactored to be re-used from the resume hook.

It makes usage of dw_hdmi_resume() to recover a functionnal DDC bus.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Kevin Hilman <khilman@baylibre.com>
[narmstrong: fixed typo in commit log, and rebased on drm-misc-next]
Link: https://patchwork.freedesktop.org/patch/msgid/20190827095825.21015-2-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_dw_hdmi.c