Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "drm: Make drivers depends on DRM_DW_HDMI"

This reverts commit c0e0f139354c01e0213204e4a96e7076e5a3e396, 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 <geert+renesas@glider.be>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patchwork.freedesktop.org/patch/msgid/bd93d43b07f8ed6368119f4a5ddac2ee80debe53.1713780345.git.geert+renesas@glider.be
Signed-off-by: Maxime Ripard <mripard@kernel.org>

authored by

Geert Uytterhoeven and committed by
Maxime Ripard
8f7f1155 05b8b6dd

+9 -10
+2 -2
drivers/gpu/drm/bridge/imx/Kconfig
··· 5 5 6 6 config DRM_IMX8MP_DW_HDMI_BRIDGE 7 7 tristate "Freescale i.MX8MP HDMI-TX bridge support" 8 - depends on COMMON_CLK 9 - depends on DRM_DW_HDMI 10 8 depends on OF 9 + depends on COMMON_CLK 10 + select DRM_DW_HDMI 11 11 imply DRM_IMX8MP_HDMI_PVI 12 12 imply PHY_FSL_SAMSUNG_HDMI_PHY 13 13 help
+2 -3
drivers/gpu/drm/imx/ipuv3/Kconfig
··· 35 35 36 36 config DRM_IMX_HDMI 37 37 tristate "Freescale i.MX DRM HDMI" 38 - depends on DRM_DW_HDMI 39 - depends on DRM_IMX 40 - depends on OF 38 + select DRM_DW_HDMI 39 + depends on DRM_IMX && OF 41 40 help 42 41 Choose this if you want to use HDMI on i.MX6.
+1 -1
drivers/gpu/drm/ingenic/Kconfig
··· 27 27 28 28 config DRM_INGENIC_DW_HDMI 29 29 tristate "Ingenic specific support for Synopsys DW HDMI" 30 - depends on DRM_DW_HDMI 31 30 depends on MACH_JZ4780 31 + select DRM_DW_HDMI 32 32 help 33 33 Choose this option to enable Synopsys DesignWare HDMI based driver. 34 34 If you want to enable HDMI on Ingenic JZ4780 based SoC, you should
+1 -1
drivers/gpu/drm/meson/Kconfig
··· 13 13 14 14 config DRM_MESON_DW_HDMI 15 15 tristate "HDMI Synopsys Controller support for Amlogic Meson Display" 16 - depends on DRM_DW_HDMI 17 16 depends on DRM_MESON 18 17 default y if DRM_MESON 18 + select DRM_DW_HDMI 19 19 imply DRM_DW_HDMI_I2S_AUDIO 20 20 21 21 config DRM_MESON_DW_MIPI_DSI
+1 -1
drivers/gpu/drm/renesas/rcar-du/Kconfig
··· 25 25 config DRM_RCAR_DW_HDMI 26 26 tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support" 27 27 depends on DRM && OF 28 - depends on DRM_DW_HDMI 29 28 depends on DRM_RCAR_DU || COMPILE_TEST 29 + select DRM_DW_HDMI 30 30 help 31 31 Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder. 32 32
+1 -1
drivers/gpu/drm/rockchip/Kconfig
··· 7 7 select DRM_PANEL 8 8 select VIDEOMODE_HELPERS 9 9 select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP 10 + select DRM_DW_HDMI if ROCKCHIP_DW_HDMI 10 11 select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI 11 12 select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI 12 13 select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI ··· 57 56 58 57 config ROCKCHIP_DW_HDMI 59 58 bool "Rockchip specific extensions for Synopsys DW HDMI" 60 - depends on DRM_DW_HDMI 61 59 help 62 60 This selects support for Rockchip SoC specific extensions 63 61 for the Synopsys DesignWare HDMI driver. If you want to
+1 -1
drivers/gpu/drm/sun4i/Kconfig
··· 57 57 config DRM_SUN8I_DW_HDMI 58 58 tristate "Support for Allwinner version of DesignWare HDMI" 59 59 depends on DRM_SUN4I 60 - depends on DRM_DW_HDMI 61 60 default DRM_SUN4I 61 + select DRM_DW_HDMI 62 62 help 63 63 Choose this option if you have an Allwinner SoC with the 64 64 DesignWare HDMI controller. SoCs that support HDMI and