aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/sata_mv.c32
1 files changed, 6 insertions, 26 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 239ea4778c56..4e7948e29140 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -202,13 +202,6 @@ enum {
202 HC_MAIN_RSVD = (0x7f << 25), /* bits 31-25 */ 202 HC_MAIN_RSVD = (0x7f << 25), /* bits 31-25 */
203 HC_MAIN_RSVD_5 = (0x1fff << 19), /* bits 31-19 */ 203 HC_MAIN_RSVD_5 = (0x1fff << 19), /* bits 31-19 */
204 HC_MAIN_RSVD_SOC = (0x3fffffb << 6), /* bits 31-9, 7-6 */ 204 HC_MAIN_RSVD_SOC = (0x3fffffb << 6), /* bits 31-9, 7-6 */
205 HC_MAIN_MASKED_IRQS = (TRAN_LO_DONE | TRAN_HI_DONE |
206 PORTS_0_3_COAL_DONE | PORTS_4_7_COAL_DONE |
207 PORTS_0_7_COAL_DONE | GPIO_INT | TWSI_INT |
208 HC_MAIN_RSVD),
209 HC_MAIN_MASKED_IRQS_5 = (PORTS_0_3_COAL_DONE | PORTS_4_7_COAL_DONE |
210 HC_MAIN_RSVD_5),
211 HC_MAIN_MASKED_IRQS_SOC = (PORTS_0_3_COAL_DONE | HC_MAIN_RSVD_SOC),
212 205
213 /* SATAHC registers */ 206 /* SATAHC registers */
214 HC_CFG_OFS = 0, 207 HC_CFG_OFS = 0,
@@ -3101,25 +3094,12 @@ static int mv_init_host(struct ata_host *host, unsigned int board_idx)
3101 3094
3102 /* and unmask interrupt generation for host regs */ 3095 /* and unmask interrupt generation for host regs */
3103 writelfl(hpriv->unmask_all_irqs, mmio + hpriv->irq_mask_ofs); 3096 writelfl(hpriv->unmask_all_irqs, mmio + hpriv->irq_mask_ofs);
3104 if (IS_GEN_I(hpriv)) 3097
3105 writelfl(~HC_MAIN_MASKED_IRQS_5, 3098 /*
3106 hpriv->main_irq_mask_addr); 3099 * enable only global host interrupts for now.
3107 else 3100 * The per-port interrupts get done later as ports are set up.
3108 writelfl(~HC_MAIN_MASKED_IRQS, 3101 */
3109 hpriv->main_irq_mask_addr); 3102 writelfl(PCI_ERR, hpriv->main_irq_mask_addr);
3110
3111 VPRINTK("HC MAIN IRQ cause/mask=0x%08x/0x%08x "
3112 "PCI int cause/mask=0x%08x/0x%08x\n",
3113 readl(hpriv->main_irq_cause_addr),
3114 readl(hpriv->main_irq_mask_addr),
3115 readl(mmio + hpriv->irq_cause_ofs),
3116 readl(mmio + hpriv->irq_mask_ofs));
3117 } else {
3118 writelfl(~HC_MAIN_MASKED_IRQS_SOC,
3119 hpriv->main_irq_mask_addr);
3120 VPRINTK("HC MAIN IRQ cause/mask=0x%08x/0x%08x\n",
3121 readl(hpriv->main_irq_cause_addr),
3122 readl(hpriv->main_irq_mask_addr));
3123 } 3103 }
3124done: 3104done:
3125 return rc; 3105 return rc;