Message ID | 20240104140037.374166-2-vladimir.oltean@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | fc74b32b4032fc1aba8fc92f0e17e5ebe773bb68 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | ds->user_mii_bus cleanup (part 1) | expand |
On Thu, Jan 04, 2024 at 04:00:28PM +0200, Vladimir Oltean wrote: > __of_mdiobus_register(), called right next, overwrites the phy_mask > we just configured on the bus, so this is redundant and confusing. > Delete it. > > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> > --- > drivers/net/dsa/lantiq_gswip.c | 1 - > 1 file changed, 1 deletion(-)
On 1/4/24 06:00, Vladimir Oltean wrote: > __of_mdiobus_register(), called right next, overwrites the phy_mask > we just configured on the bus, so this is redundant and confusing. > Delete it. > > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 05a017c9ef3d..3494ad854cf6 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -521,7 +521,6 @@ static int gswip_mdio(struct gswip_priv *priv, struct device_node *mdio_np) snprintf(ds->user_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(priv->dev)); ds->user_mii_bus->parent = priv->dev; - ds->user_mii_bus->phy_mask = ~ds->phys_mii_mask; err = of_mdiobus_register(ds->user_mii_bus, mdio_np); if (err)
__of_mdiobus_register(), called right next, overwrites the phy_mask we just configured on the bus, so this is redundant and confusing. Delete it. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- drivers/net/dsa/lantiq_gswip.c | 1 - 1 file changed, 1 deletion(-)