serail: msm_geni_serial: Stop TX Engine during port close

This change is added to stop_tx during port shutdown.

Leaving TX sequencer active after port shutdown resulting
in unexpected behaviour because we expect TX sequencer
and DMA engine to go IDLE after port close.

In some cases TX remains active and trying to send invalid
TX zero bytes over TX line. Hence stop TX during port close.

Change-Id: I5ac15726bee16d2cc4de96dcd64e5c1d2b743908
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
This commit is contained in:
Chandana Kishori Chiluveru 2020-07-03 15:44:48 +05:30 • committed by Akash Asthana
commit 5c56d5da09

View file

@ -2079,6 +2079,7 @@ static void msm_geni_serial_shutdown(struct uart_port *uport)
} else {
msm_geni_serial_power_on(uport);
wait_for_transfers_inflight(uport);
msm_geni_serial_stop_tx(uport);
}
if (!uart_console(uport)) {