This is a note to let you know that I've just added the patch titled

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

to the 2.6.38-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     serial-also-set-the-uartclk-value-in-resume-after-goes-to-highspeed.patch
and it can be found in the queue-2.6.38 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 95926d2db6256e08d06b753752a0d903a0580acc Mon Sep 17 00:00:00 2001
From: Yin Kangkai <[email protected]>
Date: Wed, 9 Feb 2011 11:34:20 +0800
Subject: serial: also set the uartclk value in resume after goes to highspeed

From: Yin Kangkai <[email protected]>

commit 95926d2db6256e08d06b753752a0d903a0580acc upstream.

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.

CC: Greg Kroah-Hartman <[email protected]>
CC: David Woodhouse <[email protected]>
CC: [email protected]
Signed-off-by: Yin Kangkai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/tty/serial/8250.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/tty/serial/8250.c
+++ b/drivers/tty/serial/8250.c
@@ -3036,6 +3036,7 @@ void serial8250_resume_port(int line)
                serial_outp(up, 0x04, tmp);
 
                serial_outp(up, UART_LCR, 0);
+               up->port.uartclk = 921600*16;
        }
        uart_resume_port(&serial8250_reg, &up->port);
 }


Patches currently in stable-queue which might be from 
[email protected] are

queue-2.6.38/serial-change-the-divisor-latch-only-when-prescalar-actually-changed.patch
queue-2.6.38/serial-also-set-the-uartclk-value-in-resume-after-goes-to-highspeed.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to