Skip to content

Commit 9da7ec9

Browse files
lumagmripard
authored andcommitted
drm/bridge-connector: move to DRM_DISPLAY_HELPER module
drm_bridge_connector is a "leaf" driver, belonging to the display helper, rather than the "CRTC" drm_kms_helper module. Move the driver to the drm/display and add necessary Kconfig selection clauses. Suggested-by: Maxime Ripard <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20240903-drm-bridge-connector-fix-hdmi-reset-v5-2-daebde6d9857@linaro.org Signed-off-by: Maxime Ripard <[email protected]>
1 parent 466cb3c commit 9da7ec9

File tree

21 files changed

+38
-2
lines changed

21 files changed

+38
-2
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7452,8 +7452,8 @@ S: Maintained
74527452
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
74537453
F: Documentation/devicetree/bindings/display/bridge/
74547454
F: drivers/gpu/drm/bridge/
7455+
F: drivers/gpu/drm/display/drm_bridge_connector.c
74557456
F: drivers/gpu/drm/drm_bridge.c
7456-
F: drivers/gpu/drm/drm_bridge_connector.c
74577457
F: include/drm/drm_bridge.h
74587458
F: include/drm/drm_bridge_connector.h
74597459

drivers/gpu/drm/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
128128
drm_kms_helper-y := \
129129
drm_atomic_helper.o \
130130
drm_atomic_state_helper.o \
131-
drm_bridge_connector.o \
132131
drm_crtc_helper.o \
133132
drm_damage_helper.o \
134133
drm_encoder_slave.o \

drivers/gpu/drm/bridge/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ config DRM_TI_SN65DSI86
390390
depends on OF
391391
select DRM_DISPLAY_DP_HELPER
392392
select DRM_DISPLAY_HELPER
393+
select DRM_BRIDGE_CONNECTOR
393394
select DRM_KMS_HELPER
394395
select REGMAP_I2C
395396
select DRM_PANEL

drivers/gpu/drm/display/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ config DRM_DISPLAY_HELPER
1313

1414
if DRM_DISPLAY_HELPER
1515

16+
config DRM_BRIDGE_CONNECTOR
17+
bool
18+
help
19+
DRM connector implementation terminating DRM bridge chains.
20+
1621
config DRM_DISPLAY_DP_AUX_CEC
1722
bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
1823
select DRM_DISPLAY_DP_HELPER

drivers/gpu/drm/display/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
obj-$(CONFIG_DRM_DISPLAY_DP_AUX_BUS) += drm_dp_aux_bus.o
44

55
drm_display_helper-y := drm_display_helper_mod.o
6+
drm_display_helper-$(CONFIG_DRM_BRIDGE_CONNECTOR) += \
7+
drm_bridge_connector.o
68
drm_display_helper-$(CONFIG_DRM_DISPLAY_DP_HELPER) += \
79
drm_dp_dual_mode_helper.o \
810
drm_dp_helper.o \

drivers/gpu/drm/imx/dcss/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ config DRM_IMX_DCSS
22
tristate "i.MX8MQ DCSS"
33
select IMX_IRQSTEER
44
select DRM_KMS_HELPER
5+
select DRM_DISPLAY_HELPER
6+
select DRM_BRIDGE_CONNECTOR
57
select DRM_GEM_DMA_HELPER
68
select VIDEOMODE_HELPERS
79
depends on DRM && ARCH_MXC && ARM64

drivers/gpu/drm/imx/lcdc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ config DRM_IMX_LCDC
33
depends on DRM && (ARCH_MXC || COMPILE_TEST)
44
select DRM_GEM_DMA_HELPER
55
select DRM_KMS_HELPER
6+
select DRM_DISPLAY_HELPER
7+
select DRM_BRIDGE_CONNECTOR
68
help
79
Found on i.MX1, i.MX21, i.MX25 and i.MX27.

drivers/gpu/drm/ingenic/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ config DRM_INGENIC
88
select DRM_BRIDGE
99
select DRM_PANEL_BRIDGE
1010
select DRM_KMS_HELPER
11+
select DRM_DISPLAY_HELPER
12+
select DRM_BRIDGE_CONNECTOR
1113
select DRM_GEM_DMA_HELPER
1214
select REGMAP
1315
select REGMAP_MMIO

drivers/gpu/drm/kmb/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ config DRM_KMB_DISPLAY
33
depends on DRM
44
depends on ARCH_KEEMBAY || COMPILE_TEST
55
select DRM_KMS_HELPER
6+
select DRM_DISPLAY_HELPER
7+
select DRM_BRIDGE_CONNECTOR
68
select DRM_GEM_DMA_HELPER
79
select DRM_MIPI_DSI
810
help

0 commit comments

Comments
 (0)