[PATCH AUTOSEL 6.17-5.15] net: ethernet: microchip: sparx5: make it selectable for ARCH_LAN969X

Sasha Levin sashal at kernel.org
Sat Oct 25 08:56:13 PDT 2025


From: Robert Marko <robert.marko at sartura.hr>

[ Upstream commit 6287982aa54946449bccff3e6488d3a15e458392 ]

LAN969x switchdev support depends on the SparX-5 core,so make it selectable
for ARCH_LAN969X.

Signed-off-by: Robert Marko <robert.marko at sartura.hr>
Reviewed-by: Daniel Machon <daniel.machon at microchip.com>
Link: https://patch.msgid.link/20250917110106.55219-1-robert.marko@sartura.hr
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
Signed-off-by: Sasha Levin <sashal at kernel.org>
---

LLM Generated explanations, may be completely bogus:

YES. The change extends the `SPARX5_SWITCH` Kconfig dependency so the
switch core can be enabled when building for `ARCH_LAN969X`
(`drivers/net/ethernet/microchip/sparx5/Kconfig:6`). Without it, the
LAN969x-specific driver entry `config LAN969X_SWITCH`, which is compiled
into the same `sparx5-switch.ko`, cannot even be selected because it
depends on `SPARX5_SWITCH`
(`drivers/net/ethernet/microchip/sparx5/Kconfig:28-31` and
`drivers/net/ethernet/microchip/sparx5/Makefile:1-23`). That prevents
any LAN969x system—the SoC is defined under `ARCH_LAN969X`
(`arch/arm64/Kconfig.platforms:187-201`)—from instantiating the SparX-5
core that the LAN969x code relies on (for example the
`lan969x_fdma_init()` path in
`drivers/net/ethernet/microchip/sparx5/lan969x/lan969x_fdma.c:357-392`
or the LAN969x DT match wired into the SparX-5 platform driver in
`drivers/net/ethernet/microchip/sparx5/sparx5_main.c:1116-1136`). In
practice this means current stable kernels that already merged LAN969x
support ship a non-functional configuration knob—akin to a build
regression—because the required core can’t be enabled. The fix is a
single Kconfig dependency tweak with no runtime side effects and no
architectural churn, making it a low-risk, high-value backport that
unblocks hardware support.

 drivers/net/ethernet/microchip/sparx5/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/microchip/sparx5/Kconfig b/drivers/net/ethernet/microchip/sparx5/Kconfig
index 35e1c0cf345ea..a4d6706590d25 100644
--- a/drivers/net/ethernet/microchip/sparx5/Kconfig
+++ b/drivers/net/ethernet/microchip/sparx5/Kconfig
@@ -3,7 +3,7 @@ config SPARX5_SWITCH
 	depends on NET_SWITCHDEV
 	depends on HAS_IOMEM
 	depends on OF
-	depends on ARCH_SPARX5 || COMPILE_TEST
+	depends on ARCH_SPARX5 || ARCH_LAN969X || COMPILE_TEST
 	depends on PTP_1588_CLOCK_OPTIONAL
 	depends on BRIDGE || BRIDGE=n
 	select PHYLINK
-- 
2.51.0




More information about the linux-arm-kernel mailing list