From 5c56d5da0910e472c1a8dcd31b13aaa94b6e82f5 Mon Sep 17 00:00:00 2001 From: Chandana Kishori Chiluveru Date: Fri, 3 Jul 2020 15:44:48 +0530 Subject: [PATCH] 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 --- drivers/tty/serial/msm_geni_serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/msm_geni_serial.c b/drivers/tty/serial/msm_geni_serial.c index 3d4c8571ccf3..b227646dac3a 100644 --- a/drivers/tty/serial/msm_geni_serial.c +++ b/drivers/tty/serial/msm_geni_serial.c @@ -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)) {