]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: qcom_geni_serial: Fix RX cancel command failure
authorsatya priya <skakit@codeaurora.org>
Tue, 11 Feb 2020 10:13:02 +0000 (15:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:22:19 +0000 (17:22 +0100)
commitd471ebdb9007ccefd8112b6cb6cddda207ceeba8
tree5ed205f95eacf9ed5f1fa263fe88896b8c14bcba
parentac8b8991712053342f8ddfa9087fc601c306ec3a
tty: serial: qcom_geni_serial: Fix RX cancel command failure

commit 8385c76b373c966e67a93d5bd60eb1e724c905d8 upstream.

RX cancel command fails when BT is switched on and off multiple times.

To handle this, poll for the cancel bit in SE_GENI_S_IRQ_STATUS register
instead of SE_GENI_S_CMD_CTRL_REG.

As per the HPG update, handle the RX last bit after cancel command
and flush out the RX FIFO buffer.

Signed-off-by: satya priya <skakit@codeaurora.org>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1581415982-8793-1-git-send-email-skakit@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c