Bluetooth: hci_h5: btrtl: Maintain flow control if wakeup is enabled
authorArchie Pusaka <apusaka@chromium.org>
Fri, 23 Jul 2021 11:31:56 +0000 (19:31 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 23 Jul 2021 12:10:23 +0000 (14:10 +0200)
commit30f11dda2d25edcaae5ad34c4b953df4b2ba4faf
tree03ded6a73be08d1b32c4a9c62e86cce7611c0545
parent66f077dde74943e9dd84a9205b4951b19556c9ea
Bluetooth: hci_h5: btrtl: Maintain flow control if wakeup is enabled

For chips that doesn't reset on suspend, we need to provide the correct
value of flow_control when it resumes. Therefore, store the flow
control value when reading from the config file to be reused upon
suspend.

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