diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-01-25 19:10:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-26 18:48:19 +0300 |
commit | 03854d8a7723b31eac9436a6cea6d13a92745e21 (patch) | |
tree | 8594e46a72310600a55f871988d135927bf49ef1 /drivers/net/ethernet/xilinx/xilinx_axienet_main.c | |
parent | 7a86be6a5135eaa4feb929f5386412caec8aabe4 (diff) | |
download | linux-03854d8a7723b31eac9436a6cea6d13a92745e21.tar.xz |
net: axienet: replace mdiobus_write() with mdiodev_write()
Commit 0ebecb2644c8 ("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: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_axienet_main.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 1ebdf1c62db8..de0a6372ae0e 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1568,8 +1568,7 @@ static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode, int ret; if (lp->switch_x_sgmii) { - ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr, - XLNX_MII_STD_SELECT_REG, + ret = mdiodev_write(pcs_phy, XLNX_MII_STD_SELECT_REG, interface == PHY_INTERFACE_MODE_SGMII ? XLNX_MII_STD_SELECT_SGMII : 0); if (ret < 0) { |