public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] ufs: core: print more evt history
@ 2022-10-24 12:06 peter.wang
  2022-10-24 13:15 ` Stanley Chu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: peter.wang @ 2022-10-24 12:06 UTC (permalink / raw)
  To: stanley.chu, linux-scsi, martin.petersen, avri.altman,
	alim.akhtar, jejb
  Cc: wsd_upstream, linux-mediatek, peter.wang, chun-hung.wu,
	alice.chao, cc.chou, chaotian.jing, jiajie.hao, powen.kao,
	qilin.tan, lin.gui

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(+)

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");
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ufs: core: print more evt history
  2022-10-24 12:06 [PATCH v1] ufs: core: print more evt history peter.wang
@ 2022-10-24 13:15 ` Stanley Chu
  2022-10-24 15:43 ` Asutosh Das
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stanley Chu @ 2022-10-24 13:15 UTC (permalink / raw)
  To: peter.wang
  Cc: stanley.chu, linux-scsi, martin.petersen, avri.altman,
	alim.akhtar, jejb, wsd_upstream, linux-mediatek, chun-hung.wu,
	alice.chao, cc.chou, chaotian.jing, jiajie.hao, powen.kao,
	qilin.tan, lin.gui

Hi Peter,

On Mon, Oct 24, 2022 at 9:11 PM <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.
>
> Signed-off-by: Peter Wang <peter.wang@mediatek.com>
> ---

Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ufs: core: print more evt history
  2022-10-24 12:06 [PATCH v1] ufs: core: print more evt history peter.wang
  2022-10-24 13:15 ` Stanley Chu
@ 2022-10-24 15:43 ` Asutosh Das
  2022-10-27  2:13 ` Martin K. Petersen
  2022-11-08  4:01 ` Martin K. Petersen
  3 siblings, 0 replies; 5+ messages in thread
From: Asutosh Das @ 2022-10-24 15:43 UTC (permalink / raw)
  To: peter.wang
  Cc: stanley.chu, linux-scsi, martin.petersen, avri.altman,
	alim.akhtar, jejb, wsd_upstream, linux-mediatek, chun-hung.wu,
	alice.chao, cc.chou, chaotian.jing, jiajie.hao, powen.kao,
	qilin.tan, lin.gui

On Mon, Oct 24 2022 at 06:11 -0700, 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.
>
>Signed-off-by: Peter Wang <peter.wang@mediatek.com>
>---
> drivers/ufs/core/ufshcd.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>

>2.18.0
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ufs: core: print more evt history
  2022-10-24 12:06 [PATCH v1] ufs: core: print more evt history peter.wang
  2022-10-24 13:15 ` Stanley Chu
  2022-10-24 15:43 ` Asutosh Das
@ 2022-10-27  2:13 ` Martin K. Petersen
  2022-11-08  4:01 ` Martin K. Petersen
  3 siblings, 0 replies; 5+ messages in thread
From: Martin K. Petersen @ 2022-10-27  2:13 UTC (permalink / raw)
  To: peter.wang
  Cc: stanley.chu, linux-scsi, martin.petersen, avri.altman,
	alim.akhtar, jejb, wsd_upstream, linux-mediatek, chun-hung.wu,
	alice.chao, cc.chou, chaotian.jing, jiajie.hao, powen.kao,
	qilin.tan, lin.gui


> 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	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ufs: core: print more evt history
  2022-10-24 12:06 [PATCH v1] ufs: core: print more evt history peter.wang
                   ` (2 preceding siblings ...)
  2022-10-27  2:13 ` Martin K. Petersen
@ 2022-11-08  4:01 ` Martin K. Petersen
  3 siblings, 0 replies; 5+ messages in thread
From: Martin K. Petersen @ 2022-11-08  4:01 UTC (permalink / raw)
  To: linux-scsi, jejb, avri.altman, stanley.chu, peter.wang,
	alim.akhtar
  Cc: Martin K . Petersen, powen.kao, lin.gui, wsd_upstream, alice.chao,
	chaotian.jing, jiajie.hao, cc.chou, qilin.tan, linux-mediatek,
	chun-hung.wu

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

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-08  4:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 12:06 [PATCH v1] ufs: core: print more evt history peter.wang
2022-10-24 13:15 ` Stanley Chu
2022-10-24 15:43 ` Asutosh Das
2022-10-27  2:13 ` Martin K. Petersen
2022-11-08  4:01 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox