linux/drivers/gpu/drm/bridge
Douglas Anderson 99d02ed523 drm: bridge: dw-hdmi: Add hook for resume
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.

As part of this change we'll refactor the hardware init bits of
dw-hdmi to happen all in one function and all at the same time.  Since
we need to init the interrupt mutes before we request the IRQ, this
means moving the hardware init earlier in the function, but there
should be no problems with that.  Also as part of this we now
unconditionally init the "i2c" parts of dw-hdmi, but again that ought
to be fine.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190604204207.168085-1-dianders@chromium.org
2019-06-11 13:52:28 -04:00
..
adv7511 Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2019-05-28 09:39:08 +02:00
analogix Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2019-05-28 09:39:08 +02:00
synopsys drm: bridge: dw-hdmi: Add hook for resume 2019-06-11 13:52:28 -04:00
analogix-anx78xx.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
analogix-anx78xx.h
cdns-dsi.c drm/bridge: cdns: Convert to phy framework 2019-02-07 09:48:40 +01:00
dumb-vga-dac.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
lvds-encoder.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
Makefile drm/bridge: tc358764: Add DSI to LVDS bridge driver 2018-07-27 09:09:57 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
nxp-ptn3460.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
panel.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
parade-ps8622.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
sii902x.c drm/bridge: sii902x: fix comparision of u32 with less than zero 2019-06-07 15:01:19 +02:00
sii9234.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 114 2019-05-24 17:39:01 +02:00
sil-sii8620.c drm/edid: Pass connector to AVI infoframe functions 2019-01-10 19:01:06 +02:00
sil-sii8620.h
tc358764.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
tc358767.c drm/bridge: tc358767: add IRQ and HPD support 2019-05-31 15:41:31 +02:00
thc63lvd1024.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
ti-sn65dsi86.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00
ti-tfp410.c drm/bridge: drop drmP.h usage 2019-05-26 10:55:04 +02:00