Commit 04d5d946 authored by Michael Welling's avatar Michael Welling Committed by Jiri Slaby

tty: serial: 8250_core.c Bug fix for Exar chips.

commit b790f210 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: default avatarMichael Welling <mwelling@ieee.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 50e2278a
...@@ -555,7 +555,7 @@ static void serial8250_set_sleep(struct uart_8250_port *p, int sleep) ...@@ -555,7 +555,7 @@ static void serial8250_set_sleep(struct uart_8250_port *p, int sleep)
*/ */
if ((p->port.type == PORT_XR17V35X) || if ((p->port.type == PORT_XR17V35X) ||
(p->port.type == PORT_XR17D15X)) { (p->port.type == PORT_XR17D15X)) {
serial_out(p, UART_EXAR_SLEEP, 0xff); serial_out(p, UART_EXAR_SLEEP, sleep ? 0xff : 0);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment