Skip to content

Commit f0528ce

Browse files
ffainellidavem330
authored andcommitted
net: greth: use phy_read_status()
In case the greth driver is bound to anything but the Generic PHY driver or the PHY has a special read_status callback implemented, unexpected things will happen. Make sure we that we use phy_read_status() which does the proper abstraction of calling the driver specific read_status() callback for a given PHY. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2613f95 commit f0528ce

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/aeroflex

1 file changed

+1
-1
lines changed

drivers/net/ethernet/aeroflex/greth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ static int greth_mdio_init(struct greth_private *greth)
13611361
timeout = jiffies + 6*HZ;
13621362
while (!phy_aneg_done(greth->phy) && time_before(jiffies, timeout)) {
13631363
}
1364-
genphy_read_status(greth->phy);
1364+
phy_read_status(greth->phy);
13651365
greth_link_change(greth->netdev);
13661366
}
13671367

0 commit comments

Comments
 (0)