diff options
-rw-r--r-- | drivers/ata/sata_mv.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index a377226b81c8..be9ae4fc5cbe 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -3734,11 +3734,13 @@ static int mv_init_host(struct ata_host *host, unsigned int board_idx) | |||
3734 | writelfl(0, hc_mmio + HC_IRQ_CAUSE_OFS); | 3734 | writelfl(0, hc_mmio + HC_IRQ_CAUSE_OFS); |
3735 | } | 3735 | } |
3736 | 3736 | ||
3737 | /* Clear any currently outstanding host interrupt conditions */ | 3737 | if (!IS_SOC(hpriv)) { |
3738 | writelfl(0, mmio + hpriv->irq_cause_ofs); | 3738 | /* Clear any currently outstanding host interrupt conditions */ |
3739 | writelfl(0, mmio + hpriv->irq_cause_ofs); | ||
3739 | 3740 | ||
3740 | /* and unmask interrupt generation for host regs */ | 3741 | /* and unmask interrupt generation for host regs */ |
3741 | writelfl(hpriv->unmask_all_irqs, mmio + hpriv->irq_mask_ofs); | 3742 | writelfl(hpriv->unmask_all_irqs, mmio + hpriv->irq_mask_ofs); |
3743 | } | ||
3742 | 3744 | ||
3743 | /* | 3745 | /* |
3744 | * enable only global host interrupts for now. | 3746 | * enable only global host interrupts for now. |