tty: serial: qcom_geni_serial: Fix the UART wakeup issue
authorsatya priya <skakit@codeaurora.org>
Thu, 10 Sep 2020 12:53:58 +0000 (18:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 12:26:12 +0000 (14:26 +0200)
commita4ced376fed0f90e5da56aad1612fc37ed5cfdac
tree92f12452cc43dac9ebaabcd907c840c946e1760c
parent2ec812a04ff4ef8d4cba4005b7526691333a2973
tty: serial: qcom_geni_serial: Fix the UART wakeup issue

As a part of system suspend uart_port_suspend is called from the
Serial driver, which calls set_mctrl passing mctrl as 0. This
makes RFR high(NOT_READY) during suspend.

Due to this BT SoC is not able to send wakeup bytes to UART during
suspend. Include if check for non-suspend case to keep RFR low
during suspend.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Akash Asthana <akashast@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1599742438-16811-5-git-send-email-skakit@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c