Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24067
b: refs/heads/master
c: e94d10e
h: refs/heads/master
i:
  24065: c642df8
  24063: d2bd304
v: v3
  • Loading branch information
Steffen Klassert authored and Linus Torvalds committed Mar 26, 2006
1 parent 0260369 commit 3e3cec5
Show file tree
Hide file tree
Showing 2 changed files with 6 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: b4ff6450f5336c492d1e2f184d3b8186e0716b7a
refs/heads/master: e94d10eb0d77ae70378f9218631a7be91e0aecff
9 changes: 5 additions & 4 deletions trunk/drivers/net/3c59x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,8 +1907,6 @@ vortex_timer(unsigned long data)
printk(KERN_DEBUG "dev->watchdog_timeo=%d\n", dev->watchdog_timeo);
}

if (vp->medialock)
goto leave_media_alone;
disable_irq(dev->irq);
old_window = ioread16(ioaddr + EL3_CMD) >> 13;
EL3WINDOW(4);
Expand Down Expand Up @@ -1947,6 +1945,9 @@ vortex_timer(unsigned long data)
if (!netif_carrier_ok(dev))
next_tick = 5*HZ;

if (vp->medialock)
goto leave_media_alone;

if ( ! ok) {
unsigned int config;

Expand Down Expand Up @@ -1980,14 +1981,14 @@ vortex_timer(unsigned long data)
printk(KERN_DEBUG "wrote 0x%08x to Wn3_Config\n", config);
/* AKPM: FIXME: Should reset Rx & Tx here. P60 of 3c90xc.pdf */
}
EL3WINDOW(old_window);
enable_irq(dev->irq);

leave_media_alone:
if (vortex_debug > 2)
printk(KERN_DEBUG "%s: Media selection timer finished, %s.\n",
dev->name, media_tbl[dev->if_port].name);

EL3WINDOW(old_window);
enable_irq(dev->irq);
mod_timer(&vp->timer, RUN_AT(next_tick));
if (vp->deferred)
iowrite16(FakeIntr, ioaddr + EL3_CMD);
Expand Down

0 comments on commit 3e3cec5

Please sign in to comment.