Re: [PATCH] scsi: ufs: qcom: Reprogram ESI after a host controller reset

From: Konrad Dybcio

Date: Fri Oct 23 2026 - 03:46:12 EST


On 10/22/26 6:50 PM, Joonhoe Kim wrote:
> ufs_qcom_config_esi() returns early once the ESI interrupts are set up.
> ufshcd_config_mcq() also calls it after every host controller reset,
> which clears the ESI base address, the vector mask and ESI enable. After
> the error handler has reset the controller, the completions then arrive
> only on the legacy interrupt while mcq_esi_enabled stays set.
>
> Allocate the MSIs and request their interrupts only once, but program
> the ESI registers on every call. The MSI message is not cached for
> platform MSIs, so keep the one written at allocation.
>
> Fixes: 519b6274a777 ("scsi: ufs: qcom: Add MCQ ESI config vendor specific ops")
> Signed-off-by: Joonhoe Kim <26rote@xxxxxxxxx>
> ---

I'm not sure it's related, but with this change, do you still need

https://lore.kernel.org/linux-arm-msm/20261007143716.2161-1-26rote@xxxxxxxxx/

?

Konrad