Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire Chang <tientzu@chromium.org>2019-05-27 11:31:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-10 20:10:27 +0300
commit9315ad99ed5bc3865cef0da56e705549cd04fe7e (patch)
tree6e392aa766be3d212940821ebab53900969dbcfa /drivers/tty/serial/fsl_lpuart.c
parent277375b864e8147975b064b513f491e2a910e66a (diff)
uart: mediatek: support Rx in-band wakeup
In order to support Rx in-band wakeup, we need to enable irq wake on an edge sensitive interrupt of Rx pin before suspend and disable it when resuming. This interrupt is used only as wake source to resume the system when suspended. Note that the sent character will be lost as the controller is actually suspended. We use this to support wakeup on bluetooth. Bluetooth will repeatedly send 0xFD to wakeup host. Once host detects Rx falling, an interrupt is triggered, and the system leaves sleep state. Then, the bluetooth driver will send 0xFC to bluetooth and bluetooth can start to send normal HCI packets. Signed-off-by: Claire Chang <tientzu@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/fsl_lpuart.c')
0 files changed, 0 insertions, 0 deletions