mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 02:52:22 +00:00
net: axienet: replace mdiobus_write() with mdiodev_write()
Commit 0ebecb2644
("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>
This commit is contained in:
parent
7a86be6a51
commit
03854d8a77
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user