tty: serial: qcom-geni-serial: Poll primary sequencer irq status after cancel_tx
authorVijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Wed, 9 Aug 2023 10:53:13 +0000 (16:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Aug 2023 12:15:28 +0000 (14:15 +0200)
commit9c8441330bb399cba6177acce9b0e68c0dbaa597
tree1498556310c258c0199c980cd9cc1ffaf15ab231
parent0aaf78182b721991a594ad8f8fe96d806e75db5a
tty: serial: qcom-geni-serial: Poll primary sequencer irq status after cancel_tx

TX is handled by primary sequencer. After cancelling primary command, poll
primary sequencer's irq status instead of that of secondary.
While at it, also remove a couple of redundant lines that read from IRQ_EN
register and write back same.

Fixes: 2aaa43c70778 ("tty: serial: qcom-geni-serial: add support for serial engine DMA")
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Link: https://lore.kernel.org/r/1691578393-9891-1-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c