[SCSI] ufs: remove version check before IS reg clear
authorSeungwon Jeon <tgih.jun@samsung.com>
Wed, 26 Jun 2013 17:09:28 +0000 (22:39 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 28 Jun 2013 20:06:55 +0000 (13:06 -0700)
There is no need to check the version to clear
the interrupt status. And the order is changed
prior to actual handling.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Tested-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ufs/ufshcd.c

index 1f1e0851855582b04966dc3c5eb3dfdd002d2e89..2e0248302e8d9a743166fee4fa6b738c40cefb79 100644 (file)
@@ -1324,11 +1324,8 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba)
        intr_status = ufshcd_readl(hba, REG_INTERRUPT_STATUS);
 
        if (intr_status) {
+               ufshcd_writel(hba, intr_status, REG_INTERRUPT_STATUS);
                ufshcd_sl_intr(hba, intr_status);
-
-               /* If UFSHCI 1.0 then clear interrupt status register */
-               if (hba->ufs_version == UFSHCI_VERSION_10)
-                       ufshcd_writel(hba, intr_status, REG_INTERRUPT_STATUS);
                retval = IRQ_HANDLED;
        }
        spin_unlock(hba->host->host_lock);
This page took 0.026699 seconds and 5 git commands to generate.