From 40eb0de5ba7e88e30349f336a38cf22016b8c07f Mon Sep 17 00:00:00 2001 From: Jongpill Lee Date: Wed, 22 Jun 2011 17:50:25 +0900 Subject: [PATCH] tty: s5pv210: Add delay loop on fifo reset function for UART This patch addes delay loop on fifo reset function for UART. On high speed freq, it needs delay function when fifo reset. If not, system will hang by this uart reset problem when resuming from suspend mode. Signed-off-by: Jongpill Lee Signed-off-by: Jaecheol Lee Signed-off-by: Kukjin Kim Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/s5pv210.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/s5pv210.c b/drivers/tty/serial/s5pv210.c index fb2619f93d8..dce6cb3dbad 100644 --- a/drivers/tty/serial/s5pv210.c +++ b/drivers/tty/serial/s5pv210.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -83,6 +84,9 @@ static int s5pv210_serial_resetport(struct uart_port *port, wr_regl(port, S3C2410_UFCON, cfg->ufcon | S3C2410_UFCON_RESETBOTH); wr_regl(port, S3C2410_UFCON, cfg->ufcon); + /* It is need to delay When reset FIFO register */ + udelay(1); + return 0; } -- 2.39.5