]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: btusb: Reject autosuspend if discovery is active
authorLinmao Li <lilinmao@kylinos.cn>
Fri, 9 Jan 2026 02:05:38 +0000 (10:05 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 29 Jan 2026 18:33:15 +0000 (13:33 -0500)
commit312b09bbe9832799ff11c051060f78c9667d604a
treef799241f886f7418f25498f0873b52d445bf4af0
parent97eb023cd1616b06584dac77a16cb9ef3abf4491
Bluetooth: btusb: Reject autosuspend if discovery is active

If USB autosuspend occurs while discovery is active, the ongoing
HCI operation may not complete successfully. On some devices, this
can leave discovery.state stuck in DISCOVERY_FINDING.

Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c