projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6933568
)
Bluetooth: btusb: BTUSB_WAKEUP_DISABLE prevents wake
author
Abhishek Pandit-Subedi
<abhishekpandit@chromium.org>
Wed, 24 Jun 2020 18:24:30 +0000
(11:24 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 24 Jun 2020 18:28:32 +0000
(20:28 +0200)
When the BTUSB_WAKEUP_DISABLE flag is set, always return true for
prevent wake. This tells the suspend notifier not to prepare the
controller for reconnections during suspend.
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/btusb.c
b/drivers/bluetooth/btusb.c
index df46b2a34c18032bca558537953291aff0b8c7ae..1ac6fd7c4534420156434a94caf31e7074cd9dbc 100644
(file)
--- a/
drivers/bluetooth/btusb.c
+++ b/
drivers/bluetooth/btusb.c
@@
-3743,6
+3743,9
@@
static bool btusb_prevent_wake(struct hci_dev *hdev)
{
struct btusb_data *data = hci_get_drvdata(hdev);
+ if (test_bit(BTUSB_WAKEUP_DISABLE, &data->flags))
+ return true;
+
return !device_may_wakeup(&data->udev->dev);
}