[PATCH] phy: ti: Fix dependencies on COMPILE_TEST

Jean Delvare jdelvare at suse.de
Tue Dec 6 01:12:00 PST 2022


MUX_MMIO was recently changed to depend on OF. As a result, it can no
longer be selected when OF is not selected. Attempting to do so
triggers a warning:

kismet: WARNING: unmet direct dependencies detected for MUX_MMIO when selected by PHY_AM654_SERDES

Adjust the dependencies of PHY_DM816X_USB and PHY_AM654_SERDES
accordingly.

Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: Jean Delvare <jdelvare at suse.de>
Cc: Kishon Vijay Abraham I <kishon at ti.com>
Cc: Vinod Koul <vkoul at kernel.org>
Cc: Philipp Zabel <p.zabel at pengutronix.de>
---
Note: the MUX_MMIO change isn't upstream yet, but you can find it in
linux-next:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ea327624ae52936b2c0eccffd9369983ca2d08e3

 drivers/phy/ti/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-6.0.orig/drivers/phy/ti/Kconfig
+++ linux-6.0/drivers/phy/ti/Kconfig
@@ -23,7 +23,7 @@ config PHY_DM816X_USB
 
 config PHY_AM654_SERDES
 	tristate "TI AM654 SERDES support"
-	depends on OF && ARCH_K3 || COMPILE_TEST
+	depends on OF && (ARCH_K3 || COMPILE_TEST)
 	depends on COMMON_CLK
 	select GENERIC_PHY
 	select MULTIPLEXER
@@ -35,7 +35,7 @@ config PHY_AM654_SERDES
 
 config PHY_J721E_WIZ
 	tristate "TI J721E WIZ (SERDES Wrapper) support"
-	depends on OF && ARCH_K3 || COMPILE_TEST
+	depends on OF && (ARCH_K3 || COMPILE_TEST)
 	depends on HAS_IOMEM && OF_ADDRESS
 	depends on COMMON_CLK
 	select GENERIC_PHY


-- 
Jean Delvare
SUSE L3 Support



More information about the linux-phy mailing list