[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+=0d2ZLxrDkB+tY9SDu2ikeCU52=8MamEhAagjVyNq_d-V1Kw@mail.gmail.com>
Date: Tue, 27 Jan 2026 14:59:02 +0800
From: Brian Kao <powenkao@...gle.com>
To: Peter Wang (王信友) <peter.wang@...iatek.com>
Cc: "beanhuo@...ron.com" <beanhuo@...ron.com>, "avri.altman@....com" <avri.altman@....com>,
"quic_nguyenb@...cinc.com" <quic_nguyenb@...cinc.com>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>, "bvanassche@....org" <bvanassche@....org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"alim.akhtar@...sung.com" <alim.akhtar@...sung.com>,
"adrian.hunter@...el.com" <adrian.hunter@...el.com>,
"James.Bottomley@...senPartnership.com" <James.Bottomley@...senpartnership.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>
Subject: Re: [PATCH 1/1] scsi: ufs: core: Schedule EH on WLUN resume failure
[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@...gle.com> 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
Powered by blists - more mailing lists