From 3b4235fb4f6fc0392631bb6e324be6559478de60 Mon Sep 17 00:00:00 2001 From: Sophie Hu Date: Mon, 11 Mar 2024 18:07:08 +0800 Subject: 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 --- drivers/tty/serial/exynos_tty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/exynos_tty.c b/drivers/tty/serial/exynos_tty.c index 5addf34ea63b..ca9763795826 100644 --- a/drivers/tty/serial/exynos_tty.c +++ b/drivers/tty/serial/exynos_tty.c @@ -2936,6 +2936,9 @@ static int exynos_serial_resume(struct device *dev) 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); -- cgit v1.2.3