]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit915752d0e232634cfa298374924bf1e2b4141585
treeef10de134e9131e6495fb908a200690dbaa3f0f4
parent453695a2599078682e270eefca9e2051aa448ff3
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