]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: lantiq_gswip: move MDIO bus registration to .setup()
authorDaniel Golle <daniel@makrotopia.org>
Sat, 30 Aug 2025 02:34:48 +0000 (03:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Sep 2025 00:45:43 +0000 (17:45 -0700)
commit0dc602a3c7f781c8358e00d14988eca32d5e95c1
tree356c9c11409e6e80de556f2ff058a3451538aaf2
parent720412c4aebc91fdb6c880353a9465ab36a26614
net: dsa: lantiq_gswip: move MDIO bus registration to .setup()

Instead of registering the switch MDIO bus in the probe() function, move
the call to gswip_mdio() into the .setup() DSA switch op, so it can be
reused independently of the probe() function.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://patch.msgid.link/2650602042c0bfdc5664b88d59071ed4dca96c26.1756520811.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq/lantiq_gswip.c