Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195176
b: refs/heads/master
c: ce26b4d
h: refs/heads/master
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed May 18, 2010
1 parent 3480f99 commit 90acd66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b14ed884df5968b0977114ebd5a22f58d0d15315
refs/heads/master: ce26b4d1d52c9a881a99fd316c32e58cdf2d586e
8 changes: 3 additions & 5 deletions trunk/drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,6 @@ static void r6040_init_mac_regs(struct net_device *dev)
* we may got called by r6040_tx_timeout which has left
* some unsent tx buffers */
iowrite16(0x01, ioaddr + MTPR);

/* Check media */
mii_check_media(&lp->mii_if, 1, 1);
}

static void r6040_tx_timeout(struct net_device *dev)
Expand Down Expand Up @@ -530,8 +527,6 @@ static int r6040_phy_mode_chk(struct net_device *dev)
phy_dat = 0x0000;
}

mii_check_media(&lp->mii_if, 0, 1);

return phy_dat;
};

Expand Down Expand Up @@ -813,6 +808,9 @@ static void r6040_timer(unsigned long data)

/* Timer active again */
mod_timer(&lp->timer, round_jiffies(jiffies + HZ));

/* Check media */
mii_check_media(&lp->mii_if, 1, 1);
}

/* Read/set MAC address routines */
Expand Down

0 comments on commit 90acd66

Please sign in to comment.