[PATCH] serial: also set the uartclk value in resume after goes to highspeed

From: Yin Kangkai
Date: Mon Jan 24 2011 - 05:45:39 EST

For any reason if the NS16550A was not work in high speed mode (e.g. we hold
NS16550A from going to high speed mode in autoconfig_16550a()), now we are
resume from suspend, we should also set the uartclk to the correct
value. Otherwise it is still the old 1843200 and that will bring issues.

Signed-off-by: Yin Kangkai <kangkai.yin@xxxxxxxxx>
drivers/serial/8250.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 3e690da..e928e06 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2995,6 +2995,7 @@ void serial8250_resume_port(int line)

serial_outp(up, UART_LCR, 0);
+ up->port.uartclk = 921600*16;
uart_resume_port(&serial8250_reg, &up->port);
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/