Re: [PATCH 1/2] scsi: ufs: core: Skip redundant variant resume after error recovery power-up

From: Stanley Jhu

Date: Thu Nov 05 2026 - 09:46:07 EST


On Thu, Nov 05, 2026 at 07:42:29AM +0000, sashiko-bot@xxxxxxxxxx wrote:
> If a subsequent __ufshcd_wl_resume()
> fails (for example, in ufshcd_set_dev_pwr_mode()), it rolls back to
> vendor_suspend: and exits through out:, which clears is_suspended and drops
> the clock-gating hold without a matching ufshcd_hold(hba) on future resume
> attempts:

This review was run without the prerequisite listed in the cover
letter, "scsi: ufs: core: Keep clock-gating hold on failed W-LUN
runtime resume". With it applied, a failed runtime resume keeps
is_suspended and the hold, so active_reqs does not underflow.

> However,
> ufshcd_recover_pm_error() only marks ufs_device_wlun active if
> power.runtime_error is set:

Agreed. This will be fixed in v2.