summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aeroflex
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2013-12-06 13:01:32 -0800
committerDavid S. Miller <davem@davemloft.net>2013-12-09 20:38:58 -0500
commitf0528ce7a43d51090b45cf27c53e4b343facaade (patch)
tree81778416d557498eb92fa4f453e80712f56079ca /drivers/net/ethernet/aeroflex
parent2613f95f614b39681f77a5036046ea395e306e28 (diff)
downloadlinux-f0528ce7a43d51090b45cf27c53e4b343facaade.tar.gz
linux-f0528ce7a43d51090b45cf27c53e4b343facaade.tar.bz2
linux-f0528ce7a43d51090b45cf27c53e4b343facaade.zip
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>
Diffstat (limited to 'drivers/net/ethernet/aeroflex')
-rw-r--r--drivers/net/ethernet/aeroflex/greth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c
index e06694555144..b20cbf0323e0 100644
--- a/drivers/net/ethernet/aeroflex/greth.c
+++ b/drivers/net/ethernet/aeroflex/greth.c
@@ -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);
}