[SCSI] ufs: fix register address in UIC error interrupt handling
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / ufs / ufshcd.c
index aba461f0f11cf6b7fb46a7e1a5046a5b8a26fca1..b743bd6fce6bf820750d38cc94a6701abb84173e 100644 (file)
@@ -1318,7 +1318,7 @@ static void ufshcd_err_handler(struct ufs_hba *hba)
                goto fatal_eh;
 
        if (hba->errors & UIC_ERROR) {
-               reg = ufshcd_readl(hba, REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER);
+               reg = ufshcd_readl(hba, REG_UIC_ERROR_CODE_DATA_LINK_LAYER);
                if (reg & UIC_DATA_LINK_LAYER_ERROR_PA_INIT)
                        goto fatal_eh;
        }