]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit864a7324b23a21b1881af64348584424c0eda145
treec37511127a594e3864dc00fe519048d4b1285663
parent7c3b82d2174b1eb755e64eeeccdeef157227bdb0
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