Skip to content

Commit e075e49

Browse files
committed
drm: Switch DRM_DISPLAY_HELPER to depends on
Most of our helpers have relied on being selected so far through Kconfig, but that creates issues when we have multiple layers of helpers with some depending on others. Indeed, select doesn't select a dependency's dependencies, and thus isn't super intuitive. Depends on however doesn't have that limitation, so we can just switch all the drivers that were selecting DRM_DISPLAY_HELPER to depend on it. Reviewed-by: Jani Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent c0e0f13 commit e075e49

File tree

19 files changed

+59
-45
lines changed

19 files changed

+59
-45
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ config DRM_KUNIT_TEST_HELPERS
7373

7474
config DRM_KUNIT_TEST
7575
tristate "KUnit tests for DRM" if !KUNIT_ALL_TESTS
76-
depends on DRM && KUNIT && MMU
76+
depends on DRM
77+
depends on DRM_DISPLAY_HELPER
78+
depends on KUNIT
79+
depends on MMU
7780
select DRM_BUDDY
7881
select DRM_DISPLAY_DP_HELPER
79-
select DRM_DISPLAY_HELPER
8082
select DRM_EXEC
8183
select DRM_EXPORT_FOR_TESTS if m
8284
select DRM_GEM_SHMEM_HELPER

drivers/gpu/drm/amd/amdgpu/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
config DRM_AMDGPU
44
tristate "AMD GPU"
5-
depends on DRM && PCI && MMU
5+
depends on DRM
6+
depends on DRM_DISPLAY_HELPER
7+
depends on MMU
8+
depends on PCI
69
depends on !UML
710
select FW_LOADER
811
select DRM_DISPLAY_DP_HELPER
912
select DRM_DISPLAY_HDMI_HELPER
1013
select DRM_DISPLAY_HDCP_HELPER
11-
select DRM_DISPLAY_HELPER
1214
select DRM_KMS_HELPER
1315
select DRM_SCHED
1416
select DRM_TTM

drivers/gpu/drm/bridge/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ config DRM_FSL_LDB
9292

9393
config DRM_ITE_IT6505
9494
tristate "ITE IT6505 DisplayPort bridge"
95+
depends on DRM_DISPLAY_HELPER
9596
depends on OF
9697
select DRM_DISPLAY_DP_HELPER
9798
select DRM_DISPLAY_HDCP_HELPER
98-
select DRM_DISPLAY_HELPER
9999
select DRM_DISPLAY_DP_AUX_BUS
100100
select DRM_KMS_HELPER
101101
select DRM_DP_HELPER
@@ -226,9 +226,9 @@ config DRM_PARADE_PS8622
226226

227227
config DRM_PARADE_PS8640
228228
tristate "Parade PS8640 MIPI DSI to eDP Converter"
229+
depends on DRM_DISPLAY_HELPER
229230
depends on OF
230231
select DRM_DISPLAY_DP_HELPER
231-
select DRM_DISPLAY_HELPER
232232
select DRM_DISPLAY_DP_AUX_BUS
233233
select DRM_KMS_HELPER
234234
select DRM_MIPI_DSI
@@ -313,9 +313,9 @@ config DRM_TOSHIBA_TC358764
313313

314314
config DRM_TOSHIBA_TC358767
315315
tristate "Toshiba TC358767 eDP bridge"
316+
depends on DRM_DISPLAY_HELPER
316317
depends on OF
317318
select DRM_DISPLAY_DP_HELPER
318-
select DRM_DISPLAY_HELPER
319319
select DRM_KMS_HELPER
320320
select REGMAP_I2C
321321
select DRM_MIPI_DSI
@@ -336,9 +336,9 @@ config DRM_TOSHIBA_TC358768
336336

337337
config DRM_TOSHIBA_TC358775
338338
tristate "Toshiba TC358775 DSI/LVDS bridge"
339+
depends on DRM_DISPLAY_HELPER
339340
depends on OF
340341
select DRM_DISPLAY_DP_HELPER
341-
select DRM_DISPLAY_HELPER
342342
select DRM_KMS_HELPER
343343
select REGMAP_I2C
344344
select DRM_PANEL
@@ -381,9 +381,9 @@ config DRM_TI_SN65DSI83
381381

382382
config DRM_TI_SN65DSI86
383383
tristate "TI SN65DSI86 DSI to eDP bridge"
384+
depends on DRM_DISPLAY_HELPER
384385
depends on OF
385386
select DRM_DISPLAY_DP_HELPER
386-
select DRM_DISPLAY_HELPER
387387
select DRM_KMS_HELPER
388388
select REGMAP_I2C
389389
select DRM_PANEL

drivers/gpu/drm/bridge/analogix/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config DRM_ANALOGIX_ANX6345
33
tristate "Analogix ANX6345 bridge"
4+
depends on DRM_DISPLAY_HELPER
45
depends on OF
56
select DRM_ANALOGIX_DP
67
select DRM_DISPLAY_DP_HELPER
7-
select DRM_DISPLAY_HELPER
88
select DRM_KMS_HELPER
99
select REGMAP_I2C
1010
help
@@ -15,9 +15,9 @@ config DRM_ANALOGIX_ANX6345
1515

1616
config DRM_ANALOGIX_ANX78XX
1717
tristate "Analogix ANX78XX bridge"
18+
depends on DRM_DISPLAY_HELPER
1819
select DRM_ANALOGIX_DP
1920
select DRM_DISPLAY_DP_HELPER
20-
select DRM_DISPLAY_HELPER
2121
select DRM_KMS_HELPER
2222
select REGMAP_I2C
2323
help
@@ -33,10 +33,10 @@ config DRM_ANALOGIX_DP
3333
config DRM_ANALOGIX_ANX7625
3434
tristate "Analogix Anx7625 MIPI to DP interface support"
3535
depends on DRM
36+
depends on DRM_DISPLAY_HELPER
3637
depends on OF
3738
select DRM_DISPLAY_DP_HELPER
3839
select DRM_DISPLAY_HDCP_HELPER
39-
select DRM_DISPLAY_HELPER
4040
select DRM_DISPLAY_DP_AUX_BUS
4141
select DRM_MIPI_DSI
4242
help

drivers/gpu/drm/bridge/cadence/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ endif
2323

2424
config DRM_CDNS_MHDP8546
2525
tristate "Cadence DPI/DP bridge"
26+
depends on DRM_DISPLAY_HELPER
27+
depends on OF
2628
select DRM_DISPLAY_DP_HELPER
2729
select DRM_DISPLAY_HDCP_HELPER
28-
select DRM_DISPLAY_HELPER
2930
select DRM_KMS_HELPER
3031
select DRM_PANEL_BRIDGE
31-
depends on OF
3232
help
3333
Support Cadence DPI to DP bridge. This is an internal
3434
bridge and is meant to be directly embedded in a SoC.

drivers/gpu/drm/bridge/synopsys/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config DRM_DW_HDMI
33
tristate
4+
depends on DRM_DISPLAY_HELPER
45
select DRM_DISPLAY_HDMI_HELPER
5-
select DRM_DISPLAY_HELPER
66
select DRM_KMS_HELPER
77
select REGMAP_MMIO
88
select CEC_CORE if CEC_NOTIFIER

drivers/gpu/drm/display/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
config DRM_DISPLAY_HELPER
44
tristate "DRM Display Helpers"
55
depends on DRM
6+
default y
67
help
78
DRM helpers for display adapters.
89

drivers/gpu/drm/exynos/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ config DRM_EXYNOS
44
depends on OF && DRM && COMMON_CLK
55
depends on ARCH_S3C64XX || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
66
depends on MMU
7-
select DRM_DISPLAY_HELPER if DRM_EXYNOS_DP
87
select DRM_KMS_HELPER
98
select VIDEOMODE_HELPERS
109
select FB_DMAMEM_HELPERS if DRM_FBDEV_EMULATION
@@ -68,6 +67,7 @@ config DRM_EXYNOS_DSI
6867
config DRM_EXYNOS_DP
6968
bool "Exynos specific extensions for Analogix DP driver"
7069
depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
70+
depends on DRM_DISPLAY_HELPER
7171
select DRM_ANALOGIX_DP
7272
select DRM_DISPLAY_DP_HELPER
7373
default DRM_EXYNOS

drivers/gpu/drm/i915/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config DRM_I915
33
tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics"
44
depends on DRM
5+
depends on DRM_DISPLAY_HELPER
56
depends on X86 && PCI
67
depends on !PREEMPT_RT
78
select INTEL_GTT if X86
@@ -13,7 +14,6 @@ config DRM_I915
1314
select DRM_DISPLAY_DP_HELPER
1415
select DRM_DISPLAY_HDCP_HELPER
1516
select DRM_DISPLAY_HDMI_HELPER
16-
select DRM_DISPLAY_HELPER
1717
select DRM_KMS_HELPER
1818
select DRM_PANEL
1919
select DRM_MIPI_DSI

drivers/gpu/drm/mediatek/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ config DRM_MEDIATEK
2222

2323
config DRM_MEDIATEK_DP
2424
tristate "DRM DPTX Support for MediaTek SoCs"
25+
depends on DRM_DISPLAY_HELPER
2526
depends on DRM_MEDIATEK
2627
select PHY_MTK_DP
27-
select DRM_DISPLAY_HELPER
2828
select DRM_DISPLAY_DP_HELPER
2929
select DRM_DISPLAY_DP_AUX_BUS
3030
help

0 commit comments

Comments
 (0)