diff mbox series

[v1] ufs: core: print more evt history

Message ID 20221024120602.30019-1-peter.wang@mediatek.com
State New
Headers show
Series [v1] ufs: core: print more evt history | expand

Commit Message

Peter Wang (王信友) Oct. 24, 2022, 12:06 p.m. UTC
From: Peter Wang <peter.wang@mediatek.com>

Some error event is missing in ufshcd_print_evt_hist.
Add print for this error event.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
---
 drivers/ufs/core/ufshcd.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Martin K. Petersen Oct. 27, 2022, 2:13 a.m. UTC | #1
> Some error event is missing in ufshcd_print_evt_hist.  Add print for
> this error event.

Applied to 6.2/scsi-staging, thanks!
Martin K. Petersen Nov. 8, 2022, 4:01 a.m. UTC | #2
On Mon, 24 Oct 2022 20:06:02 +0800, peter.wang@mediatek.com wrote:

> From: Peter Wang <peter.wang@mediatek.com>
> 
> Some error event is missing in ufshcd_print_evt_hist.
> Add print for this error event.
> 
> 

Applied to 6.2/scsi-queue, thanks!

[1/1] ufs: core: print more evt history
      https://git.kernel.org/mkp/scsi/c/a301d487d7bd
diff mbox series

Patch

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 7256e6c43ca6..ed354febed29 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -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");