drm: Make drivers depends on DRM_DW_HDMI
authorMaxime Ripard <mripard@kernel.org>
Wed, 27 Mar 2024 10:57:02 +0000 (11:57 +0100)
committerMaxime Ripard <mripard@kernel.org>
Thu, 28 Mar 2024 10:26:49 +0000 (11:26 +0100)
DRM_DW_HDMI has a number of dependencies that might not be enabled.
However, drivers were used to selecting it while not enforcing the
DRM_DW_HDMI dependencies.

This could result in Kconfig warnings (and further build breakages) such
as:

  Kconfig warnings: (for reference only)
     WARNING: unmet direct dependencies detected for DRM_DW_HDMI
     Depends on [n]: HAS_IOMEM [=y] && DRM [=m] && DRM_BRIDGE [=y] && DRM_DISPLAY_HELPER [=n]
     Selected by [m]:
     - DRM_SUN8I_DW_HDMI [=m] && HAS_IOMEM [=y] && DRM_SUN4I [=m]

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403262127.kZkttfNz-lkp@intel.com/
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20240327-kms-kconfig-helpers-v3-7-eafee11b84b3@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/bridge/imx/Kconfig
drivers/gpu/drm/imx/ipuv3/Kconfig
drivers/gpu/drm/ingenic/Kconfig
drivers/gpu/drm/meson/Kconfig
drivers/gpu/drm/renesas/rcar-du/Kconfig
drivers/gpu/drm/rockchip/Kconfig
drivers/gpu/drm/sun4i/Kconfig

index 5965e8027529a19cb36c58d6c0335ce0db613b21..7687ed652df5b9d3b2751af56c7cd351d7c62f82 100644 (file)
@@ -5,9 +5,9 @@ config DRM_IMX_LDB_HELPER
 
 config DRM_IMX8MP_DW_HDMI_BRIDGE
        tristate "Freescale i.MX8MP HDMI-TX bridge support"
-       depends on OF
        depends on COMMON_CLK
-       select DRM_DW_HDMI
+       depends on DRM_DW_HDMI
+       depends on OF
        select DRM_IMX8MP_HDMI_PVI
        select PHY_FSL_SAMSUNG_HDMI_PHY
        help
index bacf0655ebaf3f5f3db28ea139f5076b2c6f0187..5d810ac02171d9c5a7dc6ef821921332d9734644 100644 (file)
@@ -35,7 +35,8 @@ config DRM_IMX_LDB
 
 config DRM_IMX_HDMI
        tristate "Freescale i.MX DRM HDMI"
-       select DRM_DW_HDMI
-       depends on DRM_IMX && OF
+       depends on DRM_DW_HDMI
+       depends on DRM_IMX
+       depends on OF
        help
          Choose this if you want to use HDMI on i.MX6.
index 3db117c5edd9161b83d85dd1d195856902de2648..23effeb2ac721749f8a92ff07172774b9ea1674d 100644 (file)
@@ -27,8 +27,8 @@ config DRM_INGENIC_IPU
 
 config DRM_INGENIC_DW_HDMI
        tristate "Ingenic specific support for Synopsys DW HDMI"
+       depends on DRM_DW_HDMI
        depends on MACH_JZ4780
-       select DRM_DW_HDMI
        help
          Choose this option to enable Synopsys DesignWare HDMI based driver.
          If you want to enable HDMI on Ingenic JZ4780 based SoC, you should
index 615fdd0ce41b433aa288ff56005c889119ea84c1..5520b9e3f0107c4d3945b84c8695275848ab9111 100644 (file)
@@ -13,9 +13,9 @@ config DRM_MESON
 
 config DRM_MESON_DW_HDMI
        tristate "HDMI Synopsys Controller support for Amlogic Meson Display"
+       depends on DRM_DW_HDMI
        depends on DRM_MESON
        default y if DRM_MESON
-       select DRM_DW_HDMI
        imply DRM_DW_HDMI_I2S_AUDIO
 
 config DRM_MESON_DW_MIPI_DSI
index 53c356aed5d52070e5de13355305bf5aefaa4d44..2dc739db2ba33b998d7c8fd3093f87e2de441cf9 100644 (file)
@@ -25,8 +25,8 @@ config DRM_RCAR_CMM
 config DRM_RCAR_DW_HDMI
        tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support"
        depends on DRM && OF
+       depends on DRM_DW_HDMI
        depends on DRM_RCAR_DU || COMPILE_TEST
-       select DRM_DW_HDMI
        help
          Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder.
 
index 1bf3e2829cd07b6b0023a2f1e4ca6d75846fb44e..0d5260e10f272d3b72b5052ea83d5efc01d9e75c 100644 (file)
@@ -7,7 +7,6 @@ config DRM_ROCKCHIP
        select DRM_PANEL
        select VIDEOMODE_HELPERS
        select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
-       select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
        select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
        select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
        select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
@@ -57,6 +56,7 @@ config ROCKCHIP_CDN_DP
 
 config ROCKCHIP_DW_HDMI
        bool "Rockchip specific extensions for Synopsys DW HDMI"
+       depends on DRM_DW_HDMI
        help
          This selects support for Rockchip SoC specific extensions
          for the Synopsys DesignWare HDMI driver. If you want to
index 4741d9f6544c201b699d57385a1ddbc826bf84ce..5b19c7cb7b7ebf53428d5d5bb751a285f49ca204 100644 (file)
@@ -57,8 +57,8 @@ config DRM_SUN6I_DSI
 config DRM_SUN8I_DW_HDMI
        tristate "Support for Allwinner version of DesignWare HDMI"
        depends on DRM_SUN4I
+       depends on DRM_DW_HDMI
        default DRM_SUN4I
-       select DRM_DW_HDMI
        help
          Choose this option if you have an Allwinner SoC with the
          DesignWare HDMI controller. SoCs that support HDMI and