Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263710
b: refs/heads/master
c: 1df726e
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Sep 5, 2011
1 parent 56b0474 commit ea74ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb492c9160f3d40d09456a79cc669fba74d7d9cc
refs/heads/master: 1df726ef0a700587a712a3660b2caa8e533c7de9
3 changes: 3 additions & 0 deletions trunk/drivers/net/arm/am79c961a.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,11 @@ static void am79c961_timer(unsigned long data)
struct net_device *dev = (struct net_device *)data;
struct dev_priv *priv = netdev_priv(dev);
unsigned int lnkstat, carrier;
unsigned long flags;

spin_lock_irqsave(&priv->chip_lock, flags);
lnkstat = read_ireg(dev->base_addr, ISALED0) & ISALED0_LNKST;
spin_unlock_irqrestore(&priv->chip_lock, flags);
carrier = netif_carrier_ok(dev);

if (lnkstat && !carrier) {
Expand Down

0 comments on commit ea74ac7

Please sign in to comment.