Skip to content
Commit a4926c29 authored by Marek Behún's avatar Marek Behún Committed by Paolo Abeni
Browse files

net: dsa: mv88e6xxx: fix mdio bus' phy_mask member



Commit 2c7e46ed ("net: dsa: mv88e6xxx: mask apparently non-existing
phys during probing") added non-trivial bus->phy_mask in
mv88e6xxx_mdio_register() in order to avoid excessive mdio bus
transactions during probing.

But the mask is incorrect for switches with non-zero phy_base_addr (such
as 88E6341).

Fix this.

Fixes: 2c7e46ed ("net: dsa: mv88e6xxx: mask apparently non-existing phys during probing")
Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
Tested-by: default avatarKlaus Kudielka <klaus.kudielka@gmail.com>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20230319140238.9470-1-kabel@kernel.org


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent a08df15e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment