]> www.infradead.org Git - users/hch/misc.git/commit
Bluetooth: btusb: Fix not being able to reconnect after suspend
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 14 Oct 2024 20:23:26 +0000 (16:23 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 16 Oct 2024 20:09:43 +0000 (16:09 -0400)
commit4084286151fc91cd093578f615bfb68f9efbbfcb
treecfb42541b2d3c5488ad19dde2d3d623a12337d6c
parent1db4564f101b47188c1b71696bd342ef09172b22
Bluetooth: btusb: Fix not being able to reconnect after suspend

This partially reverts 81b3e33bb054 ("Bluetooth: btusb: Don't fail
external suspend requests") as it introduced a call to hci_suspend_dev
that assumes the system-suspend which doesn't work well when just the
device is being suspended because wakeup flag is only set for remote
devices that can wakeup the system.

Reported-by: Rafael J. Wysocki <rafael@kernel.org>
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Reported-by: Kenneth Crudup <kenny@panix.com>
Fixes: 610712298b11 ("Bluetooth: btusb: Don't fail external suspend requests")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Rafael J. Wysocki <rafael@kernel.org>
drivers/bluetooth/btusb.c