summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-12-11 12:14:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-12 20:02:44 +0100
commita1a50a465485dea02aa58ed861ae4594922e7c54 (patch)
tree745a0b95440f20cbcaf11802222928d0d69f6305 /include
parent11cb1620fec786ced1be458a21c4c53ee6870d1d (diff)
downloadbarebox-a1a50a465485dea02aa58ed861ae4594922e7c54.tar.gz
barebox-a1a50a465485dea02aa58ed861ae4594922e7c54.tar.xz
net phylib: force to wait for link
When starting a network device wait until the link is up. Otherwise autobooting does not work with little timeout and several attempts have to be made until the network is finally up. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index b39eca5fbf..6c9cac973e 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -267,6 +267,7 @@ int phy_device_connect(struct eth_device *dev, struct mii_bus *bus, int addr,
u32 flags, phy_interface_t interface);
int phy_update_status(struct phy_device *phydev);
+int phy_wait_aneg_done(struct phy_device *phydev);
/* Generic PHY support and helper functions */
int genphy_restart_aneg(struct phy_device *phydev);