diff options
-rw-r--r-- | drivers/scsi/sata_sil24.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index d8a2f5f04e82..571302dc48a3 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c | |||
@@ -489,12 +489,21 @@ static void sil24_error_intr(struct ata_port *ap, u32 slot_stat) | |||
489 | u32 irq_stat, cmd_err, sstatus, serror; | 489 | u32 irq_stat, cmd_err, sstatus, serror; |
490 | 490 | ||
491 | irq_stat = readl(port + PORT_IRQ_STAT); | 491 | irq_stat = readl(port + PORT_IRQ_STAT); |
492 | writel(irq_stat, port + PORT_IRQ_STAT); /* clear irq */ | ||
493 | |||
494 | if (!(irq_stat & PORT_IRQ_ERROR)) { | ||
495 | /* ignore non-completion, non-error irqs for now */ | ||
496 | printk(KERN_WARNING DRV_NAME | ||
497 | "ata%u: non-error exception irq (irq_stat %x)\n", | ||
498 | ap->id, irq_stat); | ||
499 | return; | ||
500 | } | ||
501 | |||
492 | cmd_err = readl(port + PORT_CMD_ERR); | 502 | cmd_err = readl(port + PORT_CMD_ERR); |
493 | sstatus = readl(port + PORT_SSTATUS); | 503 | sstatus = readl(port + PORT_SSTATUS); |
494 | serror = readl(port + PORT_SERROR); | 504 | serror = readl(port + PORT_SERROR); |
495 | 505 | ||
496 | /* Clear IRQ/errors */ | 506 | /* Clear IRQ/errors */ |
497 | writel(irq_stat, port + PORT_IRQ_STAT); | ||
498 | if (cmd_err) | 507 | if (cmd_err) |
499 | writel(cmd_err, port + PORT_CMD_ERR); | 508 | writel(cmd_err, port + PORT_CMD_ERR); |
500 | if (serror) | 509 | if (serror) |