linux/drivers/gpu/drm/bridge
Enric Balletbo i Serra 46f206304d drm/bridge: ps8640: Rework power state handling
The get_edid() callback can be triggered anytime by an ioctl, i.e

  drm_mode_getconnector (ioctl)
    -> drm_helper_probe_single_connector_modes
       -> drm_bridge_connector_get_modes
          -> ps8640_bridge_get_edid

Actually if the bridge pre_enable() function was not called before
get_edid(), the driver will not be able to get the EDID properly and
display will not work until a second get_edid() call is issued and if
pre_enable() is called before. The side effect of this, for example, is
that you see anything when `Frecon` starts, neither the splash screen,
until the graphical session manager starts.

To fix this we need to make sure that all we need is enabled before
reading the EDID. This means the following:

1. If get_edid() is called before having the device powered we need to
   power on the device. In such case, the driver will power off again the
   device.

2. If get_edid() is called after having the device powered, all should
   just work. We added a powered flag in order to avoid recurrent calls
   to ps8640_bridge_poweron() and unneeded delays.

3. This seems to be specific for this device, but we need to make sure
   the panel is powered on before do a power on cycle on this device.
   Otherwise the device fails to retrieve the EDID.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Bilal Wasim <bwasim.lkml@gmail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827085911.944899-2-enric.balletbo@collabora.com
2020-09-15 15:12:24 +02:00
..
adv7511 Linux 5.8 2020-08-11 11:58:31 +10:00
analogix drm: Remove unnecessary drm_panel_attach and drm_panel_detach 2020-08-08 09:06:33 +02:00
synopsys Merge drm/drm-next into drm-misc-next 2020-09-14 18:11:40 +02:00
cdns-dsi.c drm: bridge: Pass drm_display_info to drm_bridge_funcs .mode_valid() 2020-06-23 19:53:27 +02:00
chrontel-ch7033.c drm: bridge: Pass drm_display_info to drm_bridge_funcs .mode_valid() 2020-06-23 19:53:27 +02:00
display-connector.c drm/bridge: Add bridge driver for display connectors 2020-02-26 13:31:37 +02:00
Kconfig drm/bridge: tc358762: Add basic driver for Toshiba TC358762 DSI-to-DPI bridge 2020-08-12 22:06:18 +02:00
lontium-lt9611.c drm/bridge: Fix the dsi remote end-points 2020-08-29 23:02:34 +02:00
lvds-codec.c drm/bridge: lvds-codec: simplify error handling 2020-07-30 09:03:44 +02:00
Makefile drm/bridge: tc358762: Add basic driver for Toshiba TC358762 DSI-to-DPI bridge 2020-08-12 22:06:18 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm/brige/megachips: Add checking if ge_b850v3_lvds_init() is working correctly 2020-08-23 17:08:51 +02:00
nwl-dsi.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
nwl-dsi.h drm/bridge: Add NWL MIPI DSI host controller support 2020-04-09 15:52:47 +02:00
nxp-ptn3460.c drm/bridge: nxp-ptn3460: add drm_panel_bridge support 2020-07-27 19:25:10 +02:00
panel.c drm: Remove unnecessary drm_panel_attach and drm_panel_detach 2020-08-08 09:06:33 +02:00
parade-ps8622.c drm/bridge: parade-ps8622: add drm_panel_bridge support 2020-07-27 17:22:14 +02:00
parade-ps8640.c drm/bridge: ps8640: Rework power state handling 2020-09-15 15:12:24 +02:00
sii902x.c sound updates for 5.9 2020-08-06 14:27:31 -07:00
sii9234.c drm: bridge: Pass drm_display_info to drm_bridge_funcs .mode_valid() 2020-06-23 19:53:27 +02:00
sil-sii8620.c drm next for 5.9-rc1 2020-08-05 19:50:06 -07:00
sil-sii8620.h
simple-bridge.c drm: bridge: simple-bridge: Make connector creation optional 2020-06-23 19:52:32 +02:00
tc358762.c drm/bridge: tc358762: Add basic driver for Toshiba TC358762 DSI-to-DPI bridge 2020-08-12 22:06:18 +02:00
tc358764.c drm/bridge: tc358764: add drm_panel_bridge support 2020-07-27 17:21:07 +02:00
tc358767.c drm/bridge: tc358767: add drm_panel_bridge support 2020-07-27 19:23:52 +02:00
tc358768.c drm/bridge: Replace HTTP links with HTTPS ones 2020-07-10 20:21:45 +02:00
tc358775.c drm/bridge/tc358775: Remove unneeded semicolon 2020-09-10 08:46:24 +02:00
thc63lvd1024.c drm: bridge: Pass drm_display_info to drm_bridge_funcs .mode_valid() 2020-06-23 19:53:27 +02:00
ti-sn65dsi86.c Linux 5.9-rc4 2020-09-08 14:41:40 +10:00
ti-tfp410.c drm: bridge: Pass drm_display_info to drm_bridge_funcs .mode_valid() 2020-06-23 19:53:27 +02:00
ti-tpd12s015.c drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter 2020-02-26 13:31:38 +02:00