1 From e5566162af8b9690e096d2e6089e4ed955a0d13d Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Thu, 10 Apr 2025 12:04:03 +0200
4 Subject: [PATCH 1/2] net: phy: mediatek: permit to compile test GE SOC PHY
7 When commit 462a3daad679 ("net: phy: mediatek: fix compile-test
8 dependencies") fixed the dependency, it should have also introduced
9 an or on COMPILE_TEST to permit this driver to be compile-tested even if
10 NVMEM_MTK_EFUSE wasn't selected. The driver makes use of NVMEM API that
11 are always compiled (return error) so the driver can actually be
12 compiled even without that config.
14 Fix and simplify the dependency condition of this kernel config.
16 Fixes: 462a3daad679 ("net: phy: mediatek: fix compile-test dependencies")
17 Acked-by: Daniel Golle <daniel@makrotopia.org>
18 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
19 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
20 Acked-by: Arnd Bergmann <arnd@arndb.de>
21 Link: https://patch.msgid.link/20250410100410.348-1-ansuelsmth@gmail.com
22 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
24 drivers/net/phy/mediatek/Kconfig | 3 +--
25 1 file changed, 1 insertion(+), 2 deletions(-)
27 --- a/drivers/net/phy/mediatek/Kconfig
28 +++ b/drivers/net/phy/mediatek/Kconfig
29 @@ -15,8 +15,7 @@ config MEDIATEK_GE_PHY
31 config MEDIATEK_GE_SOC_PHY
32 tristate "MediaTek SoC Ethernet PHYs"
33 - depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST
34 - depends on NVMEM_MTK_EFUSE
35 + depends on (ARM64 && ARCH_MEDIATEK && NVMEM_MTK_EFUSE) || COMPILE_TEST
38 Supports MediaTek SoC built-in Gigabit Ethernet PHYs.