Skip to content

FROMLIST: driver: bluetooth: hci_qca: Cleanup on all setup failures#652

Open
jinwli-qc wants to merge 1 commit intoqualcomm-linux:tech/net/bluetoothfrom
jinwli-qc:tech/net/bluetooth
Open

FROMLIST: driver: bluetooth: hci_qca: Cleanup on all setup failures#652
jinwli-qc wants to merge 1 commit intoqualcomm-linux:tech/net/bluetoothfrom
jinwli-qc:tech/net/bluetooth

Conversation

@jinwli-qc
Copy link

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: 9e80587 ("Bluetooth: hci_qca: Enhance retry logic in qca_setup")
Signed-off-by: Jinwang Li jinwang.li@oss.qualcomm.com
Reviewed-by: Bartosz Golaszewski bartosz.golaszewski@oss.qualcomm.com

Link: https://lore.kernel.org/all/20260205062600.590342-1-jinwang.li@oss.qualcomm.com/
CRs-Fixed: 4378012

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: 9e80587 ("Bluetooth: hci_qca: Enhance retry logic in qca_setup")
Signed-off-by: Jinwang Li <jinwang.li@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Link: https://lore.kernel.org/all/20260205062600.590342-1-jinwang.li@oss.qualcomm.com/
CRs-Fixed: 4378012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant