mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
2613f95f61
commit
f0528ce7a4
1 changed files with 1 additions and 1 deletions
|
@ -1361,7 +1361,7 @@ static int greth_mdio_init(struct greth_private *greth)
|
|||
timeout = jiffies + 6*HZ;
|
||||
while (!phy_aneg_done(greth->phy) && time_before(jiffies, timeout)) {
|
||||
}
|
||||
genphy_read_status(greth->phy);
|
||||
phy_read_status(greth->phy);
|
||||
greth_link_change(greth->netdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue