scsi: hisi_sas: fix v3 hw channel interrupt processing
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 10 Aug 2017 16:09:37 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Aug 2017 00:15:02 +0000 (20:15 -0400)
The channel interrupt is to process all the interrupts except PHY
UP/DOWN and broadcast interrupt. So we need to clear all the interrupts
except those 3 interrupts after processing channel interrupts.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c

index bb79b7763cba1405aae6b05f8307e455c90c5b0a..a8bd5576afda4e3e636f0b0490bbc67b8e74266b 100644 (file)
@@ -1260,7 +1260,7 @@ static irqreturn_t int_chnl_int_v3_hw(int irq_no, void *p)
                if (irq_msk & (2 << (phy_no * 4)) && irq_value0) {
                        hisi_sas_phy_write32(hisi_hba, phy_no,
                                        CHL_INT0, irq_value0
-                                       & (~CHL_INT0_HOTPLUG_TOUT_MSK)
+                                       & (~CHL_INT0_SL_RX_BCST_ACK_MSK)
                                        & (~CHL_INT0_SL_PHY_ENABLE_MSK)
                                        & (~CHL_INT0_NOT_RDY_MSK));
                }