OpenCloudOS-Kernel/drivers/gpu/drm/rcar-du
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 drm: rcar-du: Add writeback support for R-Car Gen3 2019-03-18 17:24:51 +02:00
Makefile drm: rcar-du: Add writeback support for R-Car Gen3 2019-03-18 17:24:51 +02:00
rcar_du_crtc.c drm: rcar-du: Link CRTCs to the DU device 2019-03-28 06:06:33 +02:00
rcar_du_crtc.h drm: rcar-du: Link CRTCs to the DU device 2019-03-28 06:06:33 +02:00
rcar_du_drv.c drm/rcar-du: Drop drm_gem_prime_export/import 2019-06-21 20:08:38 +02:00
rcar_du_drv.h drm: rcar-du: Turn LVDS clock output on/off for DPAD0 output on D3/E3 2019-02-08 02:25:56 +02:00
rcar_du_encoder.c drm/bridge: panel: Infer connector type from panel by default 2019-09-08 19:04:23 +02:00
rcar_du_encoder.h drm: rcar-du: Simplify encoder registration 2019-02-08 02:25:55 +02:00
rcar_du_group.c drm: rcar-du: Disable unused DPAD outputs 2019-01-14 03:51:27 +02:00
rcar_du_group.h drm: rcar-du: Convert to SPDX identifiers 2018-09-14 13:54:03 +03:00
rcar_du_kms.c drm: rcar-du: Add support for missing 16-bit RGB1555 formats 2019-06-08 16:36:41 +03:00
rcar_du_kms.h drm: rcar-du: Store V4L2 fourcc in rcar_du_format_info structure 2019-03-18 17:24:45 +02:00
rcar_du_of.c drm: rcar-du: of: Include header to define prototypes 2018-05-05 17:11:15 +03:00
rcar_du_of.h drm: rcar-du: Fix rcar_du_of_init() stub 2018-05-17 15:03:32 +10:00
rcar_du_of_lvds_r8a7790.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7791.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7793.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7795.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7796.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_plane.c drm/rcar-du: prepare for drmP.h removal from drm_modeset_helper.h 2019-02-07 21:48:19 +01:00
rcar_du_plane.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_du_regs.h drm: rcar-du: Write ESCR and OTAR as CRTC registers 2018-09-15 17:28:31 +03:00
rcar_du_vsp.c drm: rcar-du: Link CRTCs to the DU device 2019-03-28 06:06:33 +02:00
rcar_du_vsp.h drm: rcar-du: vsp: Extract framebuffer (un)mapping to separate functions 2019-03-18 17:24:46 +02:00
rcar_du_writeback.c drm: rcar-du: writeback: include interface header 2019-06-08 02:36:04 +03:00
rcar_du_writeback.h drm: rcar-du: Add writeback support for R-Car Gen3 2019-03-18 17:24:51 +02:00
rcar_dw_hdmi.c drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
rcar_lvds.c drm/rcar-du: Fix error check when retrieving crtc state 2019-06-18 11:44:00 -04:00
rcar_lvds.h drm: rcar-du: lvds: Add support for dual-link mode 2019-06-08 02:36:04 +03:00
rcar_lvds_regs.h drm: rcar-du: lvds: D3/E3 support 2018-09-25 00:40:56 +03:00