Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21900
b: refs/heads/master
c: 8645984
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Mar 12, 2006
1 parent 27b3096 commit e6a9f42
Show file tree
Hide file tree
Showing 2 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: 10d996ad1990ec2338c463042db6d5ef4f347187
refs/heads/master: 8645984c357a0262a29b8a28353a576645e2c707
8 changes: 4 additions & 4 deletions trunk/drivers/scsi/sata_sil24.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ static int sil24_softreset(struct ata_port *ap, int verbose,
struct sil24_port_priv *pp = ap->private_data;
struct sil24_prb *prb = &pp->cmd_block[0].ata.prb;
dma_addr_t paddr = pp->cmd_block_dma;
unsigned long timeout = jiffies + ATA_TMOUT_BOOT * HZ;
u32 irq_enable, irq_stat;
int cnt;

DPRINTK("ENTER\n");

Expand All @@ -461,16 +461,16 @@ static int sil24_softreset(struct ata_port *ap, int verbose,

writel((u32)paddr, port + PORT_CMD_ACTIVATE);

for (cnt = 0; cnt < 100; cnt++) {
do {
irq_stat = readl(port + PORT_IRQ_STAT);
writel(irq_stat, port + PORT_IRQ_STAT); /* clear irq */

irq_stat >>= PORT_IRQ_RAW_SHIFT;
if (irq_stat & (PORT_IRQ_COMPLETE | PORT_IRQ_ERROR))
break;

msleep(1);
}
msleep(100);
} while (time_before(jiffies, timeout));

/* restore IRQs */
writel(irq_enable, port + PORT_IRQ_ENABLE_SET);
Expand Down

0 comments on commit e6a9f42

Please sign in to comment.