Skip to contentSkip to conversation

ufs: fix register address in UIC error interrupt handling

PATCH In review Akinobu Mita 2 participants 2 messages Jun 2, 2013 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ufs: fix register address in UIC error interrupt handling

In UIC error interrupt handling, it checks if UIC data link layer error code indicates PA_INIT_ERROR in order to determine whether a fatal error handling is needed or not.

But the code tries to read UIC data link layer error code from wrong REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER, it should be REG_UIC_ERROR_CODE_DATA_LINK_LAYER.

Cc Vinayak Holikatti <[email protected]>
Cc Santosh Y <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
---
 drivers/scsi/ufs/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ufs/ufshcd.c +1 -1
index c32a478..492f2b7 100644
@@ -1246,7 +1246,7 @@ static void ufshcd_err_handler(struct ufs_hba *hba)
 	if (hba->errors & UIC_ERROR) {
 
 		reg = readl(hba->mmio_base +
-			    REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER);
+			    REG_UIC_ERROR_CODE_DATA_LINK_LAYER);
 		if (reg & UIC_DATA_LINK_LAYER_ERROR_PA_INIT)
 			goto fatal_eh;
 	}
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 31 lines · Akinobu Mita

In UIC error interrupt handling, it checks if UIC data link layer error code indicates PA_INIT_ERROR in order to determine whether a fatal error handling is needed or not.

But the code tries to read UIC data link layer error code from wrong REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER, it should be REG_UIC_ERROR_CODE_DATA_LINK_LAYER.

Cc Vinayak Holikatti <[email protected]>
Cc Santosh Y <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
---
 drivers/scsi/ufs/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ufs/ufshcd.c +1 -2
index c32a478..492f2b7 100644
@@ -1246,7 +1246,7 @@ static void ufshcd_err_handler(struct ufs_hba *hba)
        if (hba->errors & UIC_ERROR) {
 
                reg = readl(hba->mmio_base +
-                           REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER);
+                           REG_UIC_ERROR_CODE_DATA_LINK_LAYER);
                if (reg & UIC_DATA_LINK_LAYER_ERROR_PA_INIT)
                        goto fatal_eh;
        }
--
Quoted 2 lines

1.8.1.4

Signature · 1 line
~Santosh