diff options
Diffstat (limited to 'drivers/scsi/aacraid/sa.c')
-rw-r--r-- | drivers/scsi/aacraid/sa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/sa.c b/drivers/scsi/aacraid/sa.c index a53454908205..88d400fccc94 100644 --- a/drivers/scsi/aacraid/sa.c +++ b/drivers/scsi/aacraid/sa.c | |||
@@ -66,11 +66,11 @@ static irqreturn_t aac_sa_intr(int irq, void *dev_id, struct pt_regs *regs) | |||
66 | sa_writew(dev, DoorbellClrReg_p, PrintfReady); /* clear PrintfReady */ | 66 | sa_writew(dev, DoorbellClrReg_p, PrintfReady); /* clear PrintfReady */ |
67 | sa_writew(dev, DoorbellReg_s, PrintfDone); | 67 | sa_writew(dev, DoorbellReg_s, PrintfDone); |
68 | } else if (intstat & DOORBELL_1) { // dev -> Host Normal Command Ready | 68 | } else if (intstat & DOORBELL_1) { // dev -> Host Normal Command Ready |
69 | aac_command_normal(&dev->queues->queue[HostNormCmdQueue]); | ||
70 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_1); | 69 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_1); |
70 | aac_command_normal(&dev->queues->queue[HostNormCmdQueue]); | ||
71 | } else if (intstat & DOORBELL_2) { // dev -> Host Normal Response Ready | 71 | } else if (intstat & DOORBELL_2) { // dev -> Host Normal Response Ready |
72 | aac_response_normal(&dev->queues->queue[HostNormRespQueue]); | ||
73 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_2); | 72 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_2); |
73 | aac_response_normal(&dev->queues->queue[HostNormRespQueue]); | ||
74 | } else if (intstat & DOORBELL_3) { // dev -> Host Normal Command Not Full | 74 | } else if (intstat & DOORBELL_3) { // dev -> Host Normal Command Not Full |
75 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_3); | 75 | sa_writew(dev, DoorbellClrReg_p, DOORBELL_3); |
76 | } else if (intstat & DOORBELL_4) { // dev -> Host Normal Response Not Full | 76 | } else if (intstat & DOORBELL_4) { // dev -> Host Normal Response Not Full |
@@ -318,13 +318,13 @@ int aac_sa_init(struct aac_dev *dev) | |||
318 | * Wait for the adapter to be up and running. Wait up to 3 minutes. | 318 | * Wait for the adapter to be up and running. Wait up to 3 minutes. |
319 | */ | 319 | */ |
320 | while (!(sa_readl(dev, Mailbox7) & KERNEL_UP_AND_RUNNING)) { | 320 | while (!(sa_readl(dev, Mailbox7) & KERNEL_UP_AND_RUNNING)) { |
321 | if (time_after(jiffies, start+180*HZ)) { | 321 | if (time_after(jiffies, start+startup_timeout*HZ)) { |
322 | status = sa_readl(dev, Mailbox7); | 322 | status = sa_readl(dev, Mailbox7); |
323 | printk(KERN_WARNING "%s%d: adapter kernel failed to start, init status = %lx.\n", | 323 | printk(KERN_WARNING "%s%d: adapter kernel failed to start, init status = %lx.\n", |
324 | name, instance, status); | 324 | name, instance, status); |
325 | goto error_iounmap; | 325 | goto error_iounmap; |
326 | } | 326 | } |
327 | schedule_timeout_uninterruptible(1); | 327 | msleep(1); |
328 | } | 328 | } |
329 | 329 | ||
330 | if (request_irq(dev->scsi_host_ptr->irq, aac_sa_intr, SA_SHIRQ|SA_INTERRUPT, "aacraid", (void *)dev ) < 0) { | 330 | if (request_irq(dev->scsi_host_ptr->irq, aac_sa_intr, SA_SHIRQ|SA_INTERRUPT, "aacraid", (void *)dev ) < 0) { |