linux_dsm_epyc7002/drivers/gpu/drm/vc4
Laurent Pinchart 89958b7cd9 drm/bridge: panel: Infer connector type from panel by default
The drm panel bridge creates a connector using a connector type
explicitly passed by the display controller or bridge driver that
instantiates the panel bridge. Now that drm_panel reports its connector
type, we can use it to avoid passing an explicit (and often incorrect)
connector type to drm_panel_bridge_add() and
devm_drm_panel_bridge_add().

Several drivers report incorrect or unknown connector types to
userspace. Reporting a different type may result in a breakage. For that
reason, rename (devm_)drm_panel_bridge_add() to
(devm_)drm_panel_bridge_add_typed(), and add new
(devm_)drm_panel_bridge_add() functions that use the panel connector
type. Update all callers of (devm_)drm_panel_bridge_add() to the _typed
function, they will be converted one by one after testing.

The panel drivers have been updated with the following Coccinelle
semantic patch, with manual inspection and fixes to indentation.

@@
expression bridge;
expression dev;
expression panel;
identifier type;
@@
(
-bridge = drm_panel_bridge_add(panel, type);
+bridge = drm_panel_bridge_add_typed(panel, type);
|
-bridge = devm_drm_panel_bridge_add(dev, panel, type);
+bridge = devm_drm_panel_bridge_add_typed(dev, panel, type);
)

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190904132804.29680-3-laurent.pinchart@ideasonboard.com
2019-09-08 19:04:23 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
vc4_bo.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_crtc.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_debugfs.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_dpi.c drm/bridge: panel: Infer connector type from panel by default 2019-09-08 19:04:23 +02:00
vc4_drv.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_drv.h Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_dsi.c drm/bridge: panel: Infer connector type from panel by default 2019-09-08 19:04:23 +02:00
vc4_fence.c
vc4_gem.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
vc4_hdmi.c drm/vc4/vc4_hdmi: fill in connector info 2019-08-27 12:53:01 +02:00
vc4_hvs.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_irq.c drm/vc4: Allocate binner bo when starting to use the V3D 2019-05-23 17:32:21 +02:00
vc4_kms.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_packet.h
vc4_perfmon.c drm/vc4: Disable V3D interactions if the v3d component didn't probe. 2019-04-03 12:49:18 -07:00
vc4_plane.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_qpu_defines.h
vc4_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vc4_render_cl.c drm/vc4: Make sure to emit a tile coordinates between two MSAA loads. 2019-04-01 09:33:38 -07:00
vc4_trace_points.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vc4_trace.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vc4_txp.c drm/vc4: drop use of drmP.h 2019-07-17 12:52:45 +02:00
vc4_v3d.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
vc4_validate_shaders.c
vc4_validate.c
vc4_vec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00