This series fixes an issue where USB autosuspend during discovery
can leave the HCI state machine in an inconsistent state.
v3:
- Export hci_discovery_active() in patch 1
- Use hci_discovery_active() in btusb in patch 2
v2:
- Use hci_discovery_active() instead of testing individual bits
(Luiz Augusto von Dentz)
Linmao Li (2):
Bluetooth: hci_core: Export hci_discovery_active
Bluetooth: btusb: Reject autosuspend if discovery is active
drivers/bluetooth/btusb.c | 7 ++++---
net/bluetooth/hci_core.c | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
--
2.25.1