]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: altera-tse: Don't use netdev name for the PCS mdio bus
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Mon, 3 Nov 2025 10:49:26 +0000 (11:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 02:15:15 +0000 (18:15 -0800)
commit9350ea63fec6f0cd713b6e90bd60cc2ee433b14f
tree13cf482f573cdb1b80dfe0572af83e53ac61455f
parentdd2619d38d7e97d17995e1156293be1ec08b058d
net: altera-tse: Don't use netdev name for the PCS mdio bus

The PCS mdio bus must be created before registering the net_device. To
do that, we musn't depend on the netdev name to create the mdio bus
name. Let's use the device's name instead.

Note that this changes the bus name in /sys/bus/mdiobus

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20251103104928.58461-4-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/altera/altera_tse_main.c