Bluetooth: hci_h5: add WAKEUP_DISABLE flag
authorArchie Pusaka <apusaka@chromium.org>
Fri, 23 Jul 2021 11:31:55 +0000 (19:31 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 23 Jul 2021 12:10:23 +0000 (14:10 +0200)
commit66f077dde74943e9dd84a9205b4951b19556c9ea
treecb882d9b36737bd8d12f68b23c48363bf445bd81
parent64832df2ac056f111b51aaebbe54a996e0fce7f1
Bluetooth: hci_h5: add WAKEUP_DISABLE flag

Some RTL chips resets the FW on suspend, so wakeup is disabled on
those chips. This patch introduces this WAKEUP_DISABLE flag so that
chips that doesn't reset FW on suspend can leave the flag unset and
is allowed to wake the host.

This patch also left RTL8822 WAKEUP_DISABLE flag unset, therefore
allowing it to wake the host, and preventing reprobing on resume.

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