mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
FROMGIT: 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/1606910644-21185-4-git-send-email-cang@codeaurora.org
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Reviewed-by: Hongwu Su <hongwus@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 174590161
Change-Id: I938c89675f8aea312ca12712d40d8761355575fa
(cherry picked from commit ace3804b69
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.11/scsi-staging)
Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
@@ -6127,7 +6127,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",
|
||||
|
||||
Reference in New Issue
Block a user