Skip to content

Commit 0323287

Browse files
committed
drm: Switch DRM_DISPLAY_DP_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_DP_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 4d15125 commit 0323287

File tree

17 files changed

+27
-26
lines changed

17 files changed

+27
-26
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ config DRM_KUNIT_TEST_HELPERS
7474
config DRM_KUNIT_TEST
7575
tristate "KUnit tests for DRM" if !KUNIT_ALL_TESTS
7676
depends on DRM
77+
depends on DRM_DISPLAY_DP_HELPER
7778
depends on DRM_DISPLAY_HELPER
7879
depends on KUNIT
7980
depends on MMU
8081
select DRM_BUDDY
81-
select DRM_DISPLAY_DP_HELPER
8282
select DRM_EXEC
8383
select DRM_EXPORT_FOR_TESTS if m
8484
select DRM_GEM_SHMEM_HELPER

drivers/gpu/drm/amd/amdgpu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
config DRM_AMDGPU
44
tristate "AMD GPU"
55
depends on DRM
6+
depends on DRM_DISPLAY_DP_HELPER
67
depends on DRM_DISPLAY_HELPER
78
depends on MMU
89
depends on PCI
910
depends on !UML
1011
select FW_LOADER
11-
select DRM_DISPLAY_DP_HELPER
1212
select DRM_DISPLAY_HDMI_HELPER
1313
select DRM_DISPLAY_HDCP_HELPER
1414
select DRM_KMS_HELPER

drivers/gpu/drm/bridge/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ config DRM_FSL_LDB
9393
config DRM_ITE_IT6505
9494
tristate "ITE IT6505 DisplayPort bridge"
9595
depends on DRM_DISPLAY_DP_AUX_BUS
96+
depends on DRM_DISPLAY_DP_HELPER
9697
depends on DRM_DISPLAY_HELPER
9798
depends on OF
98-
select DRM_DISPLAY_DP_HELPER
9999
select DRM_DISPLAY_HDCP_HELPER
100100
select DRM_KMS_HELPER
101101
select DRM_DP_HELPER
@@ -227,9 +227,9 @@ config DRM_PARADE_PS8622
227227
config DRM_PARADE_PS8640
228228
tristate "Parade PS8640 MIPI DSI to eDP Converter"
229229
depends on DRM_DISPLAY_DP_AUX_BUS
230+
depends on DRM_DISPLAY_DP_HELPER
230231
depends on DRM_DISPLAY_HELPER
231232
depends on OF
232-
select DRM_DISPLAY_DP_HELPER
233233
select DRM_KMS_HELPER
234234
select DRM_MIPI_DSI
235235
select DRM_PANEL
@@ -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_DP_HELPER
316317
depends on DRM_DISPLAY_HELPER
317318
depends on OF
318-
select DRM_DISPLAY_DP_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_DP_HELPER
339340
depends on DRM_DISPLAY_HELPER
340341
depends on OF
341-
select DRM_DISPLAY_DP_HELPER
342342
select DRM_KMS_HELPER
343343
select REGMAP_I2C
344344
select DRM_PANEL
@@ -382,9 +382,9 @@ config DRM_TI_SN65DSI83
382382
config DRM_TI_SN65DSI86
383383
tristate "TI SN65DSI86 DSI to eDP bridge"
384384
depends on DRM_DISPLAY_DP_AUX_BUS
385+
depends on DRM_DISPLAY_DP_HELPER
385386
depends on DRM_DISPLAY_HELPER
386387
depends on OF
387-
select DRM_DISPLAY_DP_HELPER
388388
select DRM_KMS_HELPER
389389
select REGMAP_I2C
390390
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_DP_HELPER
45
depends on DRM_DISPLAY_HELPER
56
depends on OF
67
select DRM_ANALOGIX_DP
7-
select DRM_DISPLAY_DP_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_DP_HELPER
1819
depends on DRM_DISPLAY_HELPER
1920
select DRM_ANALOGIX_DP
20-
select DRM_DISPLAY_DP_HELPER
2121
select DRM_KMS_HELPER
2222
select REGMAP_I2C
2323
help
@@ -34,9 +34,9 @@ config DRM_ANALOGIX_ANX7625
3434
tristate "Analogix Anx7625 MIPI to DP interface support"
3535
depends on DRM
3636
depends on DRM_DISPLAY_DP_AUX_BUS
37+
depends on DRM_DISPLAY_DP_HELPER
3738
depends on DRM_DISPLAY_HELPER
3839
depends on OF
39-
select DRM_DISPLAY_DP_HELPER
4040
select DRM_DISPLAY_HDCP_HELPER
4141
select DRM_MIPI_DSI
4242
help

drivers/gpu/drm/bridge/cadence/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ endif
2323

2424
config DRM_CDNS_MHDP8546
2525
tristate "Cadence DPI/DP bridge"
26+
depends on DRM_DISPLAY_DP_HELPER
2627
depends on DRM_DISPLAY_HELPER
2728
depends on OF
28-
select DRM_DISPLAY_DP_HELPER
2929
select DRM_DISPLAY_HDCP_HELPER
3030
select DRM_KMS_HELPER
3131
select DRM_PANEL_BRIDGE

drivers/gpu/drm/display/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ config DRM_DISPLAY_DP_AUX_CHARDEV
3939
config DRM_DISPLAY_DP_HELPER
4040
bool "DRM DisplayPort Helpers"
4141
depends on DRM_DISPLAY_HELPER
42+
default y
4243
help
4344
DRM display helpers for DisplayPort.
4445

drivers/gpu/drm/exynos/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ config DRM_EXYNOS_DSI
6767
config DRM_EXYNOS_DP
6868
bool "Exynos specific extensions for Analogix DP driver"
6969
depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
70+
depends on DRM_DISPLAY_DP_HELPER
7071
depends on DRM_DISPLAY_HELPER
7172
select DRM_ANALOGIX_DP
72-
select DRM_DISPLAY_DP_HELPER
7373
default DRM_EXYNOS
7474
select DRM_PANEL
7575
help

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_DP_HELPER
56
depends on DRM_DISPLAY_HELPER
67
depends on X86 && PCI
78
depends on !PREEMPT_RT
@@ -11,7 +12,6 @@ config DRM_I915
1112
# the shmem_readpage() which depends upon tmpfs
1213
select SHMEM
1314
select TMPFS
14-
select DRM_DISPLAY_DP_HELPER
1515
select DRM_DISPLAY_HDCP_HELPER
1616
select DRM_DISPLAY_HDMI_HELPER
1717
select DRM_KMS_HELPER

drivers/gpu/drm/mediatek/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ config DRM_MEDIATEK
2323
config DRM_MEDIATEK_DP
2424
tristate "DRM DPTX Support for MediaTek SoCs"
2525
depends on DRM_DISPLAY_DP_AUX_BUS
26+
depends on DRM_DISPLAY_DP_HELPER
2627
depends on DRM_DISPLAY_HELPER
2728
depends on DRM_MEDIATEK
2829
select PHY_MTK_DP
29-
select DRM_DISPLAY_DP_HELPER
3030
help
3131
DRM/KMS Display Port driver for MediaTek SoCs.
3232

drivers/gpu/drm/msm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config DRM_MSM
66
depends on COMMON_CLK
77
depends on DRM
88
depends on DRM_DISPLAY_DP_AUX_BUS
9+
depends on DRM_DISPLAY_DP_HELPER
910
depends on DRM_DISPLAY_HELPER
1011
depends on IOMMU_SUPPORT
1112
depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
@@ -16,7 +17,6 @@ config DRM_MSM
1617
select IOMMU_IO_PGTABLE
1718
select QCOM_MDT_LOADER if ARCH_QCOM
1819
select REGULATOR
19-
select DRM_DISPLAY_DP_HELPER
2020
select DRM_EXEC
2121
select DRM_KMS_HELPER
2222
select DRM_PANEL

0 commit comments

Comments
 (0)