Bluetooth: btusb: Implement hdev->prevent_wake
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Wed, 13 May 2020 02:19:27 +0000 (19:19 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 May 2020 07:12:04 +0000 (09:12 +0200)
commitb7d0bf11a7ad0e97721a5c4a209ba749649f8b9e
treec37511127a594e3864dc00fe519048d4b1285663
parent81dafad53c67abe4f09b0b04131fe490e76e5602
Bluetooth: btusb: Implement hdev->prevent_wake

Implement the prevent_wake hook by checking device_may_wakeup on the usb
interface. This prevents the Bluetooth core from enabling scanning when
the device isn't expected to wake from suspend.

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c