]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add default wakeup callback for HCI UART driver
authorYing Hsu <yinghsu@chromium.org>
Mon, 4 Jul 2022 10:33:24 +0000 (18:33 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:09:48 +0000 (17:09 -0700)
commit6df4874b5861a9f9674a092d165e68455db46bc4
tree44e698a4106871ff477b45b1a1c86b5cbb9d584e
parent76960902eb2cbef981cdd124faa39524210ee20a
Bluetooth: Add default wakeup callback for HCI UART driver

Bluetooth HCI devices indicate if they are able to wakeup in the wakeup
callback since 'commit d3f9e8576606 ("Bluetooth: Rename driver
.prevent_wake to .wakeup")'. This patch adds a default wakeup callback
for Bluetooth HCI UAR devices. It assumes Bluetooth HCI UART devices are
wakeable for backward compatibility. For those who need a customized
behavior, one can override it before calling hci_uart_register_device().

Fixes: d3f9e8576606 ("Bluetooth: Rename driver .prevent_wake to .wakeup")
Signed-off-by: Ying Hsu <yinghsu@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_serdev.c