]> 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)
commitb645cad4cf06b6abac54f73bd6bb2cfb0af97c97
tree683f990230e4347ece51db713c44c23ef1b1119a
parent38d84d721d6e0c0274d694ce42143cda7c06e8f9
Bluetooth: btusb: Remove WAKEUP_DISABLE and add WAKEUP_AUTOSUSPEND for Realtek devices

For the commit of 5ab64a76d92fd6209ccf1fd6cff1f870957d4882, 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