drm: bridge: dw_hdmi: Add cec suspend/resume functions
authorSandor Yu <Sandor.yu@nxp.com>
Fri, 21 Jul 2023 12:44:15 +0000 (20:44 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 3 Aug 2023 08:28:43 +0000 (10:28 +0200)
commitdb1184e410744a680f92ca21e5acd5ae54510db8
treed588a9bf7cc0d6e6f329522049da08ae419358ab
parenteae7488814b519e49c57dd331a7437d99d8ae91b
drm: bridge: dw_hdmi: Add cec suspend/resume functions

CEC interrupt status/mask and logical address registers
will be reset when device enter suspend.
It will cause cec fail to work after device resume.
Add CEC suspend/resume functions, reinitialize logical address registers
and restore interrupt status/mask registers after resume.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230721124415.1513223-1-Sandor.yu@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c