Skip to content

Commit 3166e7e

Browse files
committed
drm: Switch DRM_DISPLAY_HDCP_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_HDCP_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 0323287 commit 3166e7e

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

drivers/gpu/drm/amd/amdgpu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ config DRM_AMDGPU
44
tristate "AMD GPU"
55
depends on DRM
66
depends on DRM_DISPLAY_DP_HELPER
7+
depends on DRM_DISPLAY_HDCP_HELPER
78
depends on DRM_DISPLAY_HELPER
89
depends on MMU
910
depends on PCI
1011
depends on !UML
1112
select FW_LOADER
1213
select DRM_DISPLAY_HDMI_HELPER
13-
select DRM_DISPLAY_HDCP_HELPER
1414
select DRM_KMS_HELPER
1515
select DRM_SCHED
1616
select DRM_TTM

drivers/gpu/drm/bridge/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ config DRM_ITE_IT6505
9494
tristate "ITE IT6505 DisplayPort bridge"
9595
depends on DRM_DISPLAY_DP_AUX_BUS
9696
depends on DRM_DISPLAY_DP_HELPER
97+
depends on DRM_DISPLAY_HDCP_HELPER
9798
depends on DRM_DISPLAY_HELPER
9899
depends on OF
99-
select DRM_DISPLAY_HDCP_HELPER
100100
select DRM_KMS_HELPER
101101
select DRM_DP_HELPER
102102
select EXTCON

drivers/gpu/drm/bridge/analogix/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ config DRM_ANALOGIX_ANX7625
3535
depends on DRM
3636
depends on DRM_DISPLAY_DP_AUX_BUS
3737
depends on DRM_DISPLAY_DP_HELPER
38+
depends on DRM_DISPLAY_HDCP_HELPER
3839
depends on DRM_DISPLAY_HELPER
3940
depends on OF
40-
select DRM_DISPLAY_HDCP_HELPER
4141
select DRM_MIPI_DSI
4242
help
4343
ANX7625 is an ultra-low power 4K mobile HD transmitter

drivers/gpu/drm/bridge/cadence/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ endif
2424
config DRM_CDNS_MHDP8546
2525
tristate "Cadence DPI/DP bridge"
2626
depends on DRM_DISPLAY_DP_HELPER
27+
depends on DRM_DISPLAY_HDCP_HELPER
2728
depends on DRM_DISPLAY_HELPER
2829
depends on OF
29-
select DRM_DISPLAY_HDCP_HELPER
3030
select DRM_KMS_HELPER
3131
select DRM_PANEL_BRIDGE
3232
help

drivers/gpu/drm/display/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ config DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG
6767
config DRM_DISPLAY_HDCP_HELPER
6868
bool "DRM HDCD Helpers"
6969
depends on DRM_DISPLAY_HELPER
70+
default y
7071
help
7172
DRM display helpers for HDCP.
7273

drivers/gpu/drm/i915/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ config DRM_I915
33
tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics"
44
depends on DRM
55
depends on DRM_DISPLAY_DP_HELPER
6+
depends on DRM_DISPLAY_HDCP_HELPER
67
depends on DRM_DISPLAY_HELPER
78
depends on X86 && PCI
89
depends on !PREEMPT_RT
@@ -12,7 +13,6 @@ config DRM_I915
1213
# the shmem_readpage() which depends upon tmpfs
1314
select SHMEM
1415
select TMPFS
15-
select DRM_DISPLAY_HDCP_HELPER
1616
select DRM_DISPLAY_HDMI_HELPER
1717
select DRM_KMS_HELPER
1818
select DRM_PANEL

drivers/gpu/drm/xe/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ config DRM_XE
44
depends on (m || (y && KUNIT=y))
55
depends on DRM
66
depends on DRM_DISPLAY_DP_HELPER
7+
depends on DRM_DISPLAY_HDCP_HELPER
78
depends on DRM_DISPLAY_HELPER
89
depends on MMU
910
depends on PCI
@@ -18,7 +19,6 @@ config DRM_XE
1819
select DRM_KUNIT_TEST_HELPERS if DRM_XE_KUNIT_TEST != n
1920
select DRM_PANEL
2021
select DRM_SUBALLOC_HELPER
21-
select DRM_DISPLAY_HDCP_HELPER
2222
select DRM_DISPLAY_HDMI_HELPER
2323
select DRM_MIPI_DSI
2424
select RELAY

0 commit comments

Comments
 (0)