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
Copy link
Collaborator

@shashim-quic shashim-quic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRs-Fixed: 4378012

remove CRs-Fixed from commit log. Only adding to PR description is sufficient.

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.

2 participants