summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-26 17:53:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-27 23:55:12 +0200
commit0dc9de2efd7ea6fb613afec822b52b4bfe5a7b2e (patch)
treeba3e5e30565806280a1ee22dd49875cf61fa9cbe /include/linux
parent2263e27814f1db83745a9e65c373c957307c36a0 (diff)
downloadbarebox-0dc9de2efd7ea6fb613afec822b52b4bfe5a7b2e.tar.gz
barebox-0dc9de2efd7ea6fb613afec822b52b4bfe5a7b2e.tar.xz
net/eth: fix link handling
Check link status on eth device open time and then periodically every 5 seconds. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 8fe6b866fb..76f9edb237 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -164,6 +164,7 @@ struct phy_device {
void *priv;
struct eth_device *attached_dev;
+ void (*adjust_link)(struct eth_device *dev);
struct cdev cdev;
};
@@ -253,6 +254,8 @@ int phy_device_connect(struct eth_device *dev, struct mii_bus *bus, int addr,
void (*adjust_link) (struct eth_device *edev),
u32 flags, phy_interface_t interface);
+int phy_update_status(struct phy_device *phydev);
+
/* Generic PHY support and helper functions */
int genphy_restart_aneg(struct phy_device *phydev);
int genphy_config_aneg(struct phy_device *phydev);