]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: lantiq_gswip: split into common and MMIO parts
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Nov 2025 12:18:41 +0000 (12:18 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Nov 2025 22:16:16 +0000 (14:16 -0800)
commit322a1e6f3d687d3b116837036299abeb4d79ba76
tree8c8635a2dfa036d85f468589d9ee7264fa2d74a2
parent1ec9871fbb80ba7db84f868f6aa40d38bc43f0e0
net: dsa: lantiq_gswip: split into common and MMIO parts

Move all parts specific for the MMIO/SoC driver into a module of its own
to prepare for supporting MDIO-connected switch ICs.
Modify gswip_probe() functions by splitting it into a common function
gswip_probe_common() which covers allocating, initializing and registering
the DSA switch, while keeping transport-specific regmap initialization as
well as PHY firmware loading in the new MMIO/SoC-specific gswip_probe()
function.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/dc7da5b65ec220ba8e9bc4bd04fe1ed7de046656.1762170107.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq/Kconfig
drivers/net/dsa/lantiq/Makefile
drivers/net/dsa/lantiq/lantiq_gswip.c
drivers/net/dsa/lantiq/lantiq_gswip.h
drivers/net/dsa/lantiq/lantiq_gswip_common.c [new file with mode: 0644]