Skip to content

Commit 7fe302a

Browse files
geertumripard
authored andcommitted
Revert "drm: Switch DRM_DISPLAY_DP_HELPER to depends on"
This reverts commit 0323287, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is interested in. Making a driver depend on helper code means that the user needs to know which helpers to enable first, which is very user-unfriendly. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/89ac456805746b6d0c888f10c5120b11aacd3319.1713780345.git.geert+renesas@glider.be Signed-off-by: Maxime Ripard <[email protected]>
1 parent 9573446 commit 7fe302a

File tree

17 files changed

+26
-27
lines changed

17 files changed

+26
-27
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ config DRM_KUNIT_TEST_HELPERS
7575
config DRM_KUNIT_TEST
7676
tristate "KUnit tests for DRM" if !KUNIT_ALL_TESTS
7777
depends on DRM
78-
depends on DRM_DISPLAY_DP_HELPER
7978
depends on DRM_DISPLAY_HELPER
8079
depends on KUNIT
8180
depends on MMU
8281
select DRM_BUDDY
82+
select DRM_DISPLAY_DP_HELPER
8383
select DRM_EXEC
8484
select DRM_EXPORT_FOR_TESTS if m
8585
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
76
depends on DRM_DISPLAY_HELPER
87
depends on MMU
98
depends on PCI
109
depends on !UML
1110
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
9796
depends on DRM_DISPLAY_HELPER
9897
depends on OF
98+
select DRM_DISPLAY_DP_HELPER
9999
select DRM_DISPLAY_HDCP_HELPER
100100
select DRM_KMS_HELPER
101101
select EXTCON
@@ -233,9 +233,9 @@ config DRM_PARADE_PS8622
233233
config DRM_PARADE_PS8640
234234
tristate "Parade PS8640 MIPI DSI to eDP Converter"
235235
depends on DRM_DISPLAY_DP_AUX_BUS
236-
depends on DRM_DISPLAY_DP_HELPER
237236
depends on DRM_DISPLAY_HELPER
238237
depends on OF
238+
select DRM_DISPLAY_DP_HELPER
239239
select DRM_KMS_HELPER
240240
select DRM_MIPI_DSI
241241
select DRM_PANEL
@@ -319,9 +319,9 @@ config DRM_TOSHIBA_TC358764
319319

320320
config DRM_TOSHIBA_TC358767
321321
tristate "Toshiba TC358767 eDP bridge"
322-
depends on DRM_DISPLAY_DP_HELPER
323322
depends on DRM_DISPLAY_HELPER
324323
depends on OF
324+
select DRM_DISPLAY_DP_HELPER
325325
select DRM_KMS_HELPER
326326
select REGMAP_I2C
327327
select DRM_MIPI_DSI
@@ -342,9 +342,9 @@ config DRM_TOSHIBA_TC358768
342342

343343
config DRM_TOSHIBA_TC358775
344344
tristate "Toshiba TC358775 DSI/LVDS bridge"
345-
depends on DRM_DISPLAY_DP_HELPER
346345
depends on DRM_DISPLAY_HELPER
347346
depends on OF
347+
select DRM_DISPLAY_DP_HELPER
348348
select DRM_KMS_HELPER
349349
select REGMAP_I2C
350350
select DRM_PANEL
@@ -388,9 +388,9 @@ config DRM_TI_SN65DSI83
388388
config DRM_TI_SN65DSI86
389389
tristate "TI SN65DSI86 DSI to eDP bridge"
390390
depends on DRM_DISPLAY_DP_AUX_BUS
391-
depends on DRM_DISPLAY_DP_HELPER
392391
depends on DRM_DISPLAY_HELPER
393392
depends on OF
393+
select DRM_DISPLAY_DP_HELPER
394394
select DRM_KMS_HELPER
395395
select REGMAP_I2C
396396
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
54
depends on DRM_DISPLAY_HELPER
65
depends on OF
76
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
1918
depends on DRM_DISPLAY_HELPER
2019
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
3837
depends on DRM_DISPLAY_HELPER
3938
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
2726
depends on DRM_DISPLAY_HELPER
2827
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ 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
4342
help
4443
DRM display helpers for DisplayPort.
4544

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
7170
depends on DRM_DISPLAY_HELPER
7271
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,7 +2,6 @@
22
config DRM_I915
33
tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics"
44
depends on DRM
5-
depends on DRM_DISPLAY_DP_HELPER
65
depends on DRM_DISPLAY_HELPER
76
depends on X86 && PCI
87
depends on !PREEMPT_RT
@@ -12,6 +11,7 @@ config DRM_I915
1211
# the shmem_readpage() which depends upon tmpfs
1312
select SHMEM
1413
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
2726
depends on DRM_DISPLAY_HELPER
2827
depends on DRM_MEDIATEK
2928
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,7 +6,6 @@ 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
109
depends on DRM_DISPLAY_HELPER
1110
depends on IOMMU_SUPPORT
1211
depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
@@ -17,6 +16,7 @@ config DRM_MSM
1716
select IOMMU_IO_PGTABLE
1817
select QCOM_MDT_LOADER if ARCH_QCOM
1918
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)