diff options
author | Andrew Ruder <andrew.ruder@elecsyscorp.com> | 2014-06-04 18:28:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-05 18:12:11 -0400 |
commit | aac6d02280e61bc30302024ffd7541e0951a2cf6 (patch) | |
tree | 9e043cd68d4a728ed5562631b52ef2536ee1c82e | |
parent | 36259012a4ba34d70d4fe0e8533980919e8b6024 (diff) |
dm9000: handle initial link status
On the DM9000A/DM9000B force the initial check of the link status. The
DM9000A/B has a link status changed event and this interrupt bit isn't
always set out of reset when a cable is plugged in. This results in the
driver not seeing the cable attached link status until the cable is
removed and plugged in again.
Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/davicom/dm9000.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index a86755f7824e..48870a8b39a4 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c | |||
@@ -1326,7 +1326,8 @@ dm9000_open(struct net_device *dev) | |||
1326 | mii_check_media(&db->mii, netif_msg_link(db), 1); | 1326 | mii_check_media(&db->mii, netif_msg_link(db), 1); |
1327 | netif_start_queue(dev); | 1327 | netif_start_queue(dev); |
1328 | 1328 | ||
1329 | dm9000_schedule_poll(db); | 1329 | /* Poll initial link status */ |
1330 | schedule_delayed_work(&db->phy_poll, 1); | ||
1330 | 1331 | ||
1331 | return 0; | 1332 | return 0; |
1332 | } | 1333 | } |