Re: [PATCH v4] Bluetooth: hci_qca: Cleanup on all setup failures
From: Bartosz Golaszewski
Date: Tue Jan 06 2026 - 07:47:52 EST
On Tue, 6 Jan 2026 10:43:10 +0100, Jinwang Li
<jinwang.li@xxxxxxxxxxxxxxxx> said:
> The setup process previously combined error handling and retry gating
> under one condition. As a result, the final failed attempt exited
> without performing cleanup.
>
> Update the failure path to always perform power and port cleanup on
> setup failure, and reopen the port only when retrying.
>
> Fixes: 9e80587aba4c ("Bluetooth: hci_qca: Enhance retry logic in qca_setup")
> Signed-off-by: Jinwang Li <jinwang.li@xxxxxxxxxxxxxxxx>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>