Re: [PATCH 3/3] scsi: ufs: core: Always run tx_eqtr POST_CHANGE notify
From: Bart Van Assche
Date: Mon Jul 06 2026 - 11:28:06 EST
On 6/20/26 1:03 AM, Can Guo wrote:
ufshcd_tx_eqtr() skips POST_CHANGE notify when __ufshcd_tx_eqtr()Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>
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.