Message ID | 20221024120602.30019-1-peter.wang@mediatek.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [v1] ufs: core: print more evt history | expand |
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>
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 >
> Some error event is missing in ufshcd_print_evt_hist. Add print for > this error event. Applied to 6.2/scsi-staging, thanks!
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 --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");