Re: [PATCH v10 1/4] scsi: ufs: core: Clear saved errors in ufshcd_link_recovery()

From: Martin K. Petersen (Oracle)

Date: Fri Nov 20 2026 - 22:24:21 EST


On Wed, 11 Nov 2026 17:18:31 +0900, HOYOUNG SEO wrote:

> ufshcd_link_recovery() resets both the device and the host and then
> re-establishes the link. Unlike ufshcd_reset_and_restore(), however, it
> does not clear hba->saved_err, hba->saved_uic_err and hba->force_reset,
> so the errors latched before the recovery remain pending after the link
> has already been recovered.
>
> When ufshcd_err_handler() runs afterwards,
> ufshcd_err_handling_should_stop() sees these stale errors. The error
> handler then quiesces all queues and, depending on the latched errors
> (e.g. a fatal error or UFSHCD_UIC_DL_PA_INIT_ERROR), performs another
> full ufshcd_reset_and_restore() on a link that is already operational.
>
> [...]

Applied to 7.5/scsi-queue, thanks!

[1/4] scsi: ufs: core: Clear saved errors in ufshcd_link_recovery()
https://git.kernel.org/mkp/scsi/c/e043bf8fa65e
[2/4] scsi: ufs: core: Add a helper for the system suspend callbacks
https://git.kernel.org/mkp/scsi/c/280c35ec0099
[3/4] scsi: ufs: core: Make ufshcd_wl_poweroff() behave like ufshcd_wl_suspend()
https://git.kernel.org/mkp/scsi/c/7be49f26454e
[4/4] scsi: ufs: core: Limit early link recovery in the error handler to runtime PM
https://git.kernel.org/mkp/scsi/c/7693e76c9f8b

--
Martin K. Petersen