Skip to content

Commit d3c3f4e

Browse files
Sasha Levingregkh
authored andcommitted
Revert "Bluetooth: Move shutdown callback before flushing tx and rx queue"
This reverts commit 4711284. Botched backport, dropping to rework for next release. Reported-by: Pavel Machek <pavel@denx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c31c2cc commit d3c3f4e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎net/bluetooth/hci_core.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,14 +1732,6 @@ int hci_dev_do_close(struct hci_dev *hdev)
17321732
hci_request_cancel_all(hdev);
17331733
hci_req_sync_lock(hdev);
17341734

1735-
if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) &&
1736-
!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
1737-
test_bit(HCI_UP, &hdev->flags)) {
1738-
/* Execute vendor specific shutdown routine */
1739-
if (hdev->shutdown)
1740-
hdev->shutdown(hdev);
1741-
}
1742-
17431735
if (!test_and_clear_bit(HCI_UP, &hdev->flags)) {
17441736
cancel_delayed_work_sync(&hdev->cmd_timer);
17451737
hci_req_sync_unlock(hdev);

0 commit comments

Comments
 (0)