Re: [PATCH v4 1/1] scsi: ufs: core: Flush exception handling work when RPM level is zero
From: Peter Wang (王信友)
Date: Fri Jan 30 2026 - 02:59:07 EST
On Fri, 2026-01-30 at 00:51 +0800, Thomas Yen wrote:
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 0369043ca010..8c88dd5c2cca 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -9997,6 +9997,8 @@ static int __ufshcd_wl_suspend(struct ufs_hba
> *hba, enum ufs_pm_op pm_op)
>
> if (req_dev_pwr_mode == UFS_ACTIVE_PWR_MODE &&
> req_link_state == UIC_LINK_ACTIVE_STATE) {
> + ufshcd_disable_auto_bkops(hba);
> + flush_work(&hba->eeh_work);
> goto vops_suspend;
> }
>
>
>
Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>
If you have the next version, please feel free to add my review tag.
Thanks.