tty: serial: 8250_core: restore the LCR register in set_sleep
authorSudhir Sreedharan <ssreedharan@mvista.com>
Fri, 17 Oct 2014 12:39:18 +0000 (18:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:23:34 +0000 (16:23 -0800)
commitedf4edacb331caf326a2e0f15d81c549bd9bede7
treeb895c7f580ed0ed57c8211aa77379bfb0338245f
parent513e438581020334e0345561adeeeaefa36701be
tty: serial: 8250_core: restore the LCR register in set_sleep

In ST16650V2 based serial uarts, while initalizing the PM state,
LCR registers are being initialized to 0 in serial8250_set_sleep().
If console port is already initialized and being used, this will
throws garbage in the console.

Signed-off-by: Sudhir Sreedharan <ssreedharan@mvista.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c