]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Remove WAKEUP_DISABLE and add WAKEUP_AUTOSUSPEND for Realtek devices
authorMax Chou <max.chou@realtek.com>
Tue, 17 Aug 2021 03:03:12 +0000 (11:03 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Aug 2021 15:08:31 +0000 (17:08 +0200)
commitf5ba22b42ef7b9f19e72d4a547d7a3488ed99cd5
tree683f990230e4347ece51db713c44c23ef1b1119a
parent3fedd057b16ba85b0810354a67e2e29d2b0db0bd
Bluetooth: btusb: Remove WAKEUP_DISABLE and add WAKEUP_AUTOSUSPEND for Realtek devices

For the commit of b6144ce72e64b87c20971aa21375ed7b8cefc4e6, wakeup is
always disabled for Realtek devices. However, there's the capability
for Realtek devices to apply USB wakeup.

In this commit, remove WAKEUP_DISABLE feature for Realtek devices.
If users would switch wakeup, they should access
"/sys/bus/usb/.../power/wakeup"

In this commit, it also adds the feature as WAKEUP_AUTOSUSPEND
for Realtek devices because it should set do_remote_wakeup on autosuspend.

Signed-off-by: Max Chou <max.chou@realtek.com>
Tested-by: Hilda Wu <hildawu@realtek.com>
Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c