Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83666
b: refs/heads/master
c: 15cf6dd
h: refs/heads/master
v: v3
  • Loading branch information
Andy Fleming authored and Jeff Garzik committed Feb 6, 2008
1 parent 8990bdc commit 4f282c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 4e84f9b10461ad3c869ced4373dd85771dd67d20
refs/heads/master: 15cf6dde99e40bf571a5ca48376650e163fcd30f
4 changes: 2 additions & 2 deletions trunk/drivers/net/gianfar_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int gfar_mdio_reset(struct mii_bus *bus)
struct gfar_mii __iomem *regs = (void __iomem *)bus->priv;
unsigned int timeout = PHY_INIT_TIMEOUT;

spin_lock_bh(&bus->mdio_lock);
mutex_lock(&bus->mdio_lock);

/* Reset the management interface */
gfar_write(&regs->miimcfg, MIIMCFG_RESET);
Expand All @@ -140,7 +140,7 @@ int gfar_mdio_reset(struct mii_bus *bus)
timeout--)
cpu_relax();

spin_unlock_bh(&bus->mdio_lock);
mutex_unlock(&bus->mdio_lock);

if(timeout <= 0) {
printk(KERN_ERR "%s: The MII Bus is stuck!\n",
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ucc_geth_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int uec_mdio_reset(struct mii_bus *bus)
struct ucc_mii_mng __iomem *regs = (void __iomem *)bus->priv;
unsigned int timeout = PHY_INIT_TIMEOUT;

spin_lock_bh(&bus->mdio_lock);
mutex_lock(&bus->mdio_lock);

/* Reset the management interface */
out_be32(&regs->miimcfg, MIIMCFG_RESET_MANAGEMENT);
Expand All @@ -121,7 +121,7 @@ int uec_mdio_reset(struct mii_bus *bus)
while ((in_be32(&regs->miimind) & MIIMIND_BUSY) && timeout--)
cpu_relax();

spin_unlock_bh(&bus->mdio_lock);
mutex_unlock(&bus->mdio_lock);

if (timeout <= 0) {
printk(KERN_ERR "%s: The MII Bus is stuck!\n", bus->name);
Expand Down

0 comments on commit 4f282c3

Please sign in to comment.