]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: I2C_DESIGNWARE_AMDISP should depend on DRM_AMD_ISP
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 6 May 2025 13:02:06 +0000 (15:02 +0200)
committerAndi Shyti <andi@smida.it>
Fri, 23 May 2025 08:01:40 +0000 (10:01 +0200)
The AMD Image Signal Processor I2C functionality is only present on AMD
platforms with ISP support, and its platform device is instantiated by
the AMD ISP driver.  Hence add a dependency on DRM_AMD_ISP, to prevent
asking the user about this driver when configuring a kernel that does
not support the AMD ISP.

Fixes: d6263c468a76 ("i2c: amd-isp: Add ISP i2c-designware driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Link: https://lore.kernel.org/r/3888f892b8c4d8c8acd17e56581e726ace7f7092.1746536495.git.geert+renesas@glider.be
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/Kconfig

index adb2910525b15f64b8e18cf6d1b8836d0a090d2f..827b3dc3aa814c93a69e6177c10c78fb9fb2ee13 100644 (file)
@@ -594,6 +594,7 @@ config I2C_DESIGNWARE_PLATFORM
 
 config I2C_DESIGNWARE_AMDISP
        tristate "Synopsys DesignWare Platform for AMDISP"
+       depends on DRM_AMD_ISP || COMPILE_TEST
        depends on I2C_DESIGNWARE_CORE
        help
          If you say yes to this option, support will be included for the