aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCan Guo <[email protected]>2020-12-02 04:04:03 -0800
committerMartin K. Petersen <[email protected]>2020-12-07 18:29:57 -0500
commitace3804b69afa39d9445544843506eca59f3b4b2 (patch)
tree6f479098635e6072c7b27f8bd7695b7a45ef1fca
parent7a7e66c65d4148fc3f23b058405bc9f102414fcb (diff)
scsi: ufs: Print host regs in IRQ handler when AH8 error happens
Dump registers and states prior to leaving IRQ handler when an AH8 error occurs. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Stanley Chu <[email protected]> Reviewed-by: Bao D. Nguyen <[email protected]> Reviewed-by: Asutosh Das <[email protected]> Reviewed-by: Hongwu Su <[email protected]> Signed-off-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/ufs/ufshcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index d94a376bb194..e754191dbf5f 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -6112,7 +6112,8 @@ static irqreturn_t ufshcd_check_errors(struct ufs_hba *hba)
hba->saved_uic_err |= hba->uic_error;
/* dump controller state before resetting */
- if ((hba->saved_err & (INT_FATAL_ERRORS)) ||
+ if ((hba->saved_err &
+ (INT_FATAL_ERRORS | UFSHCD_UIC_HIBERN8_MASK)) ||
(hba->saved_uic_err &&
(hba->saved_uic_err != UFSHCD_UIC_PA_GENERIC_ERROR))) {
dev_err(hba->dev, "%s: saved_err 0x%x saved_uic_err 0x%x\n",