Commit cf9f4b59 authored by Akinobu Mita's avatar Akinobu Mita Committed by James Bottomley

[SCSI] 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.
Signed-off-by: default avatarAkinobu Mita <mita@fixstars.com>
Signed-off-by: default avatarSantosh Y <santoshsy@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 2e2930a3
...@@ -1318,7 +1318,7 @@ static void ufshcd_err_handler(struct ufs_hba *hba) ...@@ -1318,7 +1318,7 @@ static void ufshcd_err_handler(struct ufs_hba *hba)
goto fatal_eh; goto fatal_eh;
if (hba->errors & UIC_ERROR) { 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) if (reg & UIC_DATA_LINK_LAYER_ERROR_PA_INIT)
goto fatal_eh; goto fatal_eh;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment