[PATCH v2 3/3] scsi: ufs: core: Always run tx_eqtr POST_CHANGE notify
Bean Huo
beanhuo at iokpp.de
Wed Jul 1 13:49:05 PDT 2026
On Thu, 2026-06-25 at 05:13 -0700, Can Guo wrote:
> ufshcd_tx_eqtr() skips POST_CHANGE notify when __ufshcd_tx_eqtr()
> fails. That can leave variant cleanup incomplete when PRE_CHANGE saved
> temporary state that POST_CHANGE is expected to restore.
>
> Always call POST_CHANGE once PRE_CHANGE has succeeded. Keep the TX EQTR
> result as the primary return value, and only propagate POST_CHANGE
> failure when TX EQTR itself succeeded.
>
> Log PRE_CHANGE and POST_CHANGE notify failures to make variant callback
> failures visible in TX EQTR error paths.
>
> Reviewed-by: Manivannan Sadhasivam <mani at kernel.org>
> Reviewed-by: Peter Wang <peter.wang at mediatek.com>
> Signed-off-by: Can Guo <can.guo at oss.qualcomm.com>
Loods good to me!
Reviewed-by: Bean Huo <beanhuo at micron.com>
More information about the linux-arm-kernel
mailing list