Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3567
b: refs/heads/master
c: 4f2ad81
h: refs/heads/master
i:
  3565: 17de436
  3563: 8d59076
  3559: f04d630
  3551: 66cbc5b
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Jeff Garzik committed Jun 27, 2005
1 parent 230a095 commit 0a3b4a3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f17697a37ccd2128f37250d2e7715c59931dc458
refs/heads/master: 4f2ad81104a18946c64215adffce50c2a659fddd
6 changes: 2 additions & 4 deletions trunk/drivers/net/tokenring/lanstreamer.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ static int streamer_reset(struct net_device *dev)
writew(readw(streamer_mmio + BCTL) | BCTL_SOFTRESET, streamer_mmio + BCTL);
t = jiffies;
/* Hold soft reset bit for a while */
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout(HZ);
ssleep(1);

writew(readw(streamer_mmio + BCTL) & ~BCTL_SOFTRESET,
streamer_mmio + BCTL);
Expand Down Expand Up @@ -512,8 +511,7 @@ static int streamer_reset(struct net_device *dev)
writew(SISR_MI, streamer_mmio + SISR_MASK_SUM);

while (!((readw(streamer_mmio + SISR)) & SISR_SRB_REPLY)) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ/10);
msleep_interruptible(100);
if (jiffies - t > 40 * HZ) {
printk(KERN_ERR
"IBM PCI tokenring card not responding\n");
Expand Down

0 comments on commit 0a3b4a3

Please sign in to comment.