]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: mxl862xx: don't set user_mii_bus
authorDaniel Golle <daniel@makrotopia.org>
Tue, 10 Mar 2026 00:41:56 +0000 (00:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2026 02:18:13 +0000 (19:18 -0700)
commitf441b489cc66fbc44d78b6c123e74283b8077431
treeda1c4d168cc9d4d9cf642cded692e550aa7b03e7
parent2503d08f8a2de618e5c3a8183b250ff4a2e2d52c
net: dsa: mxl862xx: don't set user_mii_bus

The PHY addresses in the MII bus are not equal to the port addresses,
so the bus cannot be assigned as user_mii_bus. Falling back on the
user_mii_bus in case a PHY isn't declared in device tree will result in
using the wrong (in this case: off-by-+1) PHY.
Remove the wrong assignment.

Fixes: 23794bec1cb60 ("net: dsa: add basic initial driver for MxL862xx switches")
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/0f0df310fd8cab57e0e5e3d0831dd057fd05bcd5.1773103271.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mxl862xx/mxl862xx.c