Commit 03854d8a authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by David S. Miller

net: axienet: replace mdiobus_write() with mdiodev_write()

Commit 0ebecb26 ("net: mdio: Add helper functions for accessing
MDIO devices") added support for mdiodev accessor operations that
neatly wrap the mdiobus accessor operations. Since we are dealing with
a mdio device here, update the driver to use mdiodev_write().
Tested-by: default avatarHarini Katakam <harini.katakam@xilinx.com>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a86be6a
...@@ -1568,8 +1568,7 @@ static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode, ...@@ -1568,8 +1568,7 @@ static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
int ret; int ret;
if (lp->switch_x_sgmii) { if (lp->switch_x_sgmii) {
ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr, ret = mdiodev_write(pcs_phy, XLNX_MII_STD_SELECT_REG,
XLNX_MII_STD_SELECT_REG,
interface == PHY_INTERFACE_MODE_SGMII ? interface == PHY_INTERFACE_MODE_SGMII ?
XLNX_MII_STD_SELECT_SGMII : 0); XLNX_MII_STD_SELECT_SGMII : 0);
if (ret < 0) { if (ret < 0) {
......
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