Commit ab2960f0 authored by Andrew Lunn's avatar Andrew Lunn Committed by Jakub Kicinski

ixgbe: Use C45 mdiobus accessors

When performing a C45 bus transaction, make use of the c45 variants of
the bus read/write helpers. The ability to pass a special register
value is being removed to clean up the mdio bus driver API.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 308c8ffd
...@@ -8937,7 +8937,8 @@ ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) ...@@ -8937,7 +8937,8 @@ ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr)
int regnum = addr; int regnum = addr;
if (devad != MDIO_DEVAD_NONE) if (devad != MDIO_DEVAD_NONE)
regnum |= (devad << 16) | MII_ADDR_C45; return mdiobus_c45_read(adapter->mii_bus, prtad,
devad, regnum);
return mdiobus_read(adapter->mii_bus, prtad, regnum); return mdiobus_read(adapter->mii_bus, prtad, regnum);
} }
...@@ -8960,7 +8961,8 @@ static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, ...@@ -8960,7 +8961,8 @@ static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad,
int regnum = addr; int regnum = addr;
if (devad != MDIO_DEVAD_NONE) if (devad != MDIO_DEVAD_NONE)
regnum |= (devad << 16) | MII_ADDR_C45; return mdiobus_c45_write(adapter->mii_bus, prtad, devad,
regnum, value);
return mdiobus_write(adapter->mii_bus, prtad, regnum, value); return mdiobus_write(adapter->mii_bus, prtad, regnum, value);
} }
......
Markdown is supported
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