linux_dsm_epyc7002/drivers/gpu/drm/bridge
Marek Szyprowski 152cce0006
drm/bridge: analogix_dp: Split bind() into probe() and real bind()
Analogix_dp driver acquires all its resources in the ->bind() callback,
what is a bit against the component driver based approach, where the
driver initialization is split into a probe(), where all resources are
gathered, and a bind(), where all objects are created and a compound
driver is initialized.

Extract all the resource related operations to analogix_dp_probe() and
analogix_dp_remove(), then call them before/after registration of the
device components from the main Exynos DP and Rockchip DP drivers. Also
move the plat_data initialization to the probe() to make it available for
the analogix_dp_probe() function.

This fixes the multiple calls to the bind() of the DRM compound driver
when the DP PHY driver is not yet loaded/probed:

[drm] Exynos DRM: using 14400000.fimd device for DMA mapping operations
exynos-drm exynos-drm: bound 14400000.fimd (ops fimd_component_ops [exynosdrm])
exynos-drm exynos-drm: bound 14450000.mixer (ops mixer_component_ops [exynosdrm])
exynos-dp 145b0000.dp-controller: no DP phy configured
exynos-drm exynos-drm: failed to bind 145b0000.dp-controller (ops exynos_dp_ops [exynosdrm]): -517
exynos-drm exynos-drm: master bind failed: -517
...
[drm] Exynos DRM: using 14400000.fimd device for DMA mapping operations
exynos-drm exynos-drm: bound 14400000.fimd (ops hdmi_enable [exynosdrm])
exynos-drm exynos-drm: bound 14450000.mixer (ops hdmi_enable [exynosdrm])
exynos-drm exynos-drm: bound 145b0000.dp-controller (ops hdmi_enable [exynosdrm])
exynos-drm exynos-drm: bound 14530000.hdmi (ops hdmi_enable [exynosdrm])
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Console: switching to colour frame buffer device 170x48
exynos-drm exynos-drm: fb0: exynosdrmfb frame buffer device
[drm] Initialized exynos 1.1.0 20180330 for exynos-drm on minor 1
...

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200310103427.26048-1-m.szyprowski@samsung.com
(cherry picked from commit 83a196773b)
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
2020-04-09 10:29:35 +02:00
..
adv7511 drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
analogix drm/bridge: analogix_dp: Split bind() into probe() and real bind() 2020-04-09 10:29:35 +02:00
synopsys Linux 5.6 2020-03-31 15:15:47 +10:00
cdns-dsi.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
display-connector.c drm/bridge: Add bridge driver for display connectors 2020-02-26 13:31:37 +02:00
Kconfig drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter 2020-02-26 13:31:38 +02:00
lvds-codec.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
Makefile drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter 2020-02-26 13:31:38 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
nxp-ptn3460.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
panel.c drm/bridge: panel: Implement bridge connector operations 2020-02-26 13:31:39 +02:00
parade-ps8622.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
parade-ps8640.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
sii902x.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
sii9234.c gpu: drm: bridge: sii9234: convert to devm_i2c_new_dummy_device 2019-10-10 08:57:27 +02:00
sil-sii8620.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
sil-sii8620.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
simple-bridge.c drm/bridge: simple-bridge: Add support for the TI OPA362 2020-02-26 13:31:33 +02:00
tc358764.c drm: Remove drm_fb_helper add, add all and remove connector calls 2020-03-06 14:19:58 +01:00
tc358767.c Linux 5.6-rc5 2020-03-11 07:27:21 +10:00
tc358768.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
thc63lvd1024.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
ti-sn65dsi86.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
ti-tfp410.c Linux 5.6-rc5 2020-03-11 07:27:21 +10:00
ti-tpd12s015.c drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter 2020-02-26 13:31:38 +02:00