Re: [PATCH 1/1] scsi: ufs: core: Schedule EH on WLUN resume failure
From: Brian Kao
Date: Tue Jan 27 2026 - 02:00:32 EST
[RESEND in plaintext]
Hi Peter,
> May I know at which step in __ufshcd_wl_resume the error occurred?
In our case, ufshcd_reset_and_restore() may return errors due to Link
Startup (LSS) failure.
> After recovery, is the return value still an error?
Since the error handler is scheduled to run asynchronously, the error
still propagates to the runtime PM framework when __ufshcd_wl_resume()
returns. If LSS succeeds during the error handler's execution, the
runtime PM error should be cleared in ufshcd_recover_pm_error(),
returning the host to an operational state.
Best regards,
Brian Kao
On Tue, Jan 27, 2026 at 2:41 PM Brian Kao <powenkao@xxxxxxxxxx> wrote:
>
> Hi Peter,
>
> > May I know at which step in __ufshcd_wl_resume the error occurred?
> In our case, ufshcd_reset_and_restore() may return errors due to Link Startup (LSS) failure.
>
> > After recovery, is the return value still an error?
> Since the error handler is scheduled to run asynchronously, the error still propagates to the runtime PM framework when __ufshcd_wl_resume() returns. If LSS succeeds during the error handler's execution, the runtime PM error should be cleared in ufshcd_recover_pm_error(), returning the host to an operational state.
>
> Best regards,
> Brian Kao