linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: also set the uartclk value in resume after goes to highspeed
@ 2011-01-25  7:44 Yin Kangkai
  2011-02-03 22:15 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yin Kangkai @ 2011-01-25  7:44 UTC (permalink / raw)
  To: linux-serial; +Cc: Greg Kroah-Hartman, Woodhouse, David, linux-kernel

>From 6f96e25fd4401b152adb9d91ebda0777f3532162 Mon Sep 17 00:00:00 2001
From: Yin Kangkai <kangkai.yin@intel.com>
Date: Mon, 24 Jan 2011 18:45:39 +0800
Subject: [PATCH] serial: also set the uartclk value in resume after goes to highspeed

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@intel.com>
---
 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)
 		ns16550a_goto_highspeed(up);
 
 		serial_outp(up, UART_LCR, 0);
+		up->port.uartclk = 921600*16;
 	}
 	uart_resume_port(&serial8250_reg, &up->port);
 }
-- 
1.6.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-09  3:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25  7:44 [PATCH] serial: also set the uartclk value in resume after goes to highspeed Yin Kangkai
2011-02-03 22:15 ` Greg KH
2011-02-09  3:34 ` [PATCH resend 1/2] " Yin Kangkai
2011-02-09  3:35 ` [PATCH resend 2/2] serial: change the divisor latch only when prescalar actually changed Yin Kangkai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).