Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufs: core: Print events for WLUN suspend and resume failures

WLUN suspend and resume events are currently not handled by
ufshcd_print_evt_hist(). Add the missing events.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20221024120602.30019-1-peter.wang@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Peter Wang and committed by
Martin K. Petersen
a301d487 415d82b4

+3
+3
drivers/ufs/core/ufshcd.c
··· 486 486 ufshcd_print_evt(hba, UFS_EVT_RESUME_ERR, "resume_fail"); 487 487 ufshcd_print_evt(hba, UFS_EVT_SUSPEND_ERR, 488 488 "suspend_fail"); 489 + ufshcd_print_evt(hba, UFS_EVT_WL_RES_ERR, "wlun resume_fail"); 490 + ufshcd_print_evt(hba, UFS_EVT_WL_SUSP_ERR, 491 + "wlun suspend_fail"); 489 492 ufshcd_print_evt(hba, UFS_EVT_DEV_RESET, "dev_reset"); 490 493 ufshcd_print_evt(hba, UFS_EVT_HOST_RESET, "host_reset"); 491 494 ufshcd_print_evt(hba, UFS_EVT_ABORT, "task_abort");