From: Michael Welling Date: Sat, 26 Apr 2014 00:27:48 +0000 (-0500) Subject: tty: serial: 8250_core.c Bug fix for Exar chips. X-Git-Tag: submit/tizen_common/20140519.165420~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a68d0fc73ae4e8829224c52af31f182ba57657e;p=profile%2Fivi%2Fkernel-x86-ivi.git tty: serial: 8250_core.c Bug fix for Exar chips. commit b790f210fe8423eff881b2a8a93ba5dbc45534d0 upstream. The sleep function was updated to put the serial port to sleep only when necessary. This appears to resolve the errant behavior of the driver as described in Kernel Bug 61961 – "My Exar Corp. XR17C/D152 Dual PCI UART modem does not work with 3.8.0". Signed-off-by: Michael Welling Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 69932b7..2798a23 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -555,7 +555,7 @@ static void serial8250_set_sleep(struct uart_8250_port *p, int sleep) */ if ((p->port.type == PORT_XR17V35X) || (p->port.type == PORT_XR17D15X)) { - serial_out(p, UART_EXAR_SLEEP, 0xff); + serial_out(p, UART_EXAR_SLEEP, sleep ? 0xff : 0); return; }