exynos_tty: add delay to check exact time of rts_control
Bug: 322129034
Bug: 322757101
Test: build test build and run BCST
Change-Id: I9ef0a26df5bc375059496cc213b2d2ed47de9d79
Signed-off-by: Sophie Hu <sophiehu@google.com>
diff --git a/drivers/tty/serial/exynos_tty.c b/drivers/tty/serial/exynos_tty.c
index 5addf34..ca97637 100644
--- a/drivers/tty/serial/exynos_tty.c
+++ b/drivers/tty/serial/exynos_tty.c
@@ -2936,6 +2936,9 @@
portaddrl(port, S3C64XX_UINTM));
}
+ if (ourport->rts_control || ourport->rts_alive_control)
+ usleep_range(200, 300);//delay for uart port resume
+
if (ourport->rts_control)
change_uart_gpio(DEFAULT_PINCTRL, ourport);