scsi: ufs: core: Print events for WLUN suspend and resume failures
authorPeter Wang <peter.wang@mediatek.com>
Mon, 24 Oct 2022 12:06:02 +0000 (20:06 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Oct 2022 02:13:09 +0000 (02:13 +0000)
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>
drivers/ufs/core/ufshcd.c

index b2203dd..008fc60 100644 (file)
@@ -486,6 +486,9 @@ static void ufshcd_print_evt_hist(struct ufs_hba *hba)
        ufshcd_print_evt(hba, UFS_EVT_RESUME_ERR, "resume_fail");
        ufshcd_print_evt(hba, UFS_EVT_SUSPEND_ERR,
                         "suspend_fail");
+       ufshcd_print_evt(hba, UFS_EVT_WL_RES_ERR, "wlun resume_fail");
+       ufshcd_print_evt(hba, UFS_EVT_WL_SUSP_ERR,
+                        "wlun suspend_fail");
        ufshcd_print_evt(hba, UFS_EVT_DEV_RESET, "dev_reset");
        ufshcd_print_evt(hba, UFS_EVT_HOST_RESET, "host_reset");
        ufshcd_print_evt(hba, UFS_EVT_ABORT, "task_abort");