Re: [PATCH 1/2] drm: bridge: dw-hdmi: Add hooks for suspend/resume

From: Doug Anderson
Date: Wed May 15 2019 - 12:30:21 EST


Hi

From: Douglas Anderson <dianders@xxxxxxxxxxxx>
Date: Thu, May 2, 2019 at 3:38 PM
To: Heiko Stuebner, Sandy Huang, Andrzej Hajda, Laurent Pinchart
Cc: <linux-rockchip@xxxxxxxxxxxxxxxxxxx>, Neil Armstrong,
<mka@xxxxxxxxxxxx>, Sean Paul, Douglas Anderson, Zheng Yang, Sam
Ravnborg, <dri-devel@xxxxxxxxxxxxxxxxxxxxx>,
<linux-kernel@xxxxxxxxxxxxxxx>, Ville SyrjÃlÃ, David Airlie, Jernej
Skrabec, Daniel Vetter

> On Rockchip rk3288-based Chromebooks when you do a suspend/resume
> cycle:
>
> 1. You lose the ability to detect an HDMI device being plugged in.
>
> 2. If you're using the i2c bus built in to dw_hdmi then it stops
> working.
>
> Let's add a hook to the core dw-hdmi driver so that we can call it in
> dw_hdmi-rockchip in the next commit.
>
> NOTE: the exact set of steps I've done here in resume come from
> looking at the normal dw_hdmi init sequence in upstream Linux plus the
> sequence that we did in downstream Chrome OS 3.14. Testing show that
> it seems to work, but if an extra step is needed or something here is
> not needed we could improve it.
>
> Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
> ---
>
> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 21 +++++++++++++++++++++
> include/drm/bridge/dw_hdmi.h | 3 +++
> 2 files changed, 24 insertions(+)

Did anyone have any thoughts on this patch series? Thanks! :-)

-Doug