From: Jongpill Lee Date: Wed, 22 Jun 2011 08:50:25 +0000 (+0900) Subject: tty: s5pv210: Add delay loop on fifo reset function for UART X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=40eb0de5ba7e88e30349f336a38cf22016b8c07f;p=linux-beck.git 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 --- diff --git a/drivers/tty/serial/s5pv210.c b/drivers/tty/serial/s5pv210.c index fb2619f93d84..dce6cb3dbad1 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; }