]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.0.1/tty-serial-fix-xscale-serial-ports-e.g.-ce4100.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / tty-serial-fix-xscale-serial-ports-e.g.-ce4100.patch
CommitLineData
d53dcc05
GKH
1From 5568181f188ae9485a0cdbea5ea48f63d186a298 Mon Sep 17 00:00:00 2001
2From: Stephen Warren <swarren@nvidia.com>
3Date: Fri, 17 Jun 2011 09:45:07 -0600
4Subject: tty/serial: Fix XSCALE serial ports, e.g. ce4100
5
6From: Stephen Warren <swarren@nvidia.com>
7
8commit 5568181f188ae9485a0cdbea5ea48f63d186a298 upstream.
9
10Commit 4539c24fe4f92c09ee668ef959d3e8180df619b9 "tty/serial: Add
11explicit PORT_TEGRA type" introduced separate flags describing the need
12for IER bits UUE and RTOIE. Both bits are required for the XSCALE port
13type. While that patch updated uart_config[] as required, the auto-probing
14code wasn't updated to set the RTOIE flag when an XSCALE port type was
15detected. This caused such ports to stop working. This patch rectifies
16that.
17
18Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
19Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
20Signed-off-by: Stephen Warren <swarren@nvidia.com>
21Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22
23---
24 drivers/tty/serial/8250.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27--- a/drivers/tty/serial/8250.c
28+++ b/drivers/tty/serial/8250.c
29@@ -1107,7 +1107,7 @@ static void autoconfig_16550a(struct uar
30 */
31 DEBUG_AUTOCONF("Xscale ");
32 up->port.type = PORT_XSCALE;
33- up->capabilities |= UART_CAP_UUE;
34+ up->capabilities |= UART_CAP_UUE | UART_CAP_RTOIE;
35 return;
36 }
37 } else {