Bluetooth: btusb: Don't suspend when there are connections
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 2 May 2023 22:11:59 +0000 (15:11 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Dec 2023 17:54:30 +0000 (12:54 -0500)
commit4e0a1d8b06751d9ea8357e1f29f6b31465856665
tree554c972b6f133f7f384bdadc14fd7cacdddde5df
parent5d192b697c7417254cdd9edc3d5e9e0364eb9045
Bluetooth: btusb: Don't suspend when there are connections

This checks if there are connections before suspending since that may
disrupt the connections making it stop receiving any data if remote
wakeup is not enabled.

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