summaryrefslogtreecommitdiff
path: root/target/linux/aruba-2.6/patches/011-ap6x_serial_fix.patch
blob: 528d0e90fb24cfddb2d9fb12d489f23b1cca56f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -urN linux.old/drivers/serial/8250.c linux.net/drivers/serial/8250.c
--- linux.old/drivers/serial/8250.c	2006-01-15 07:16:02.000000000 +0100
+++ linux.net/drivers/serial/8250.c	2006-01-30 06:12:30.509342250 +0100
@@ -1510,7 +1510,7 @@
 {
 	struct uart_8250_port *up = (struct uart_8250_port *)port;
 	unsigned long flags;
-	unsigned char lsr, iir;
+//	unsigned char lsr, iir;
 	int retval;
 
 	up->capabilities = uart_config[up->port.type].flags;
@@ -1615,6 +1615,8 @@
 
 	serial8250_set_mctrl(&up->port, up->port.mctrl);
 
+// For some reason this test causes problems on the AP6x serial console
+#if 0
 	/*
 	 * Do a quick test to see if we receive an
 	 * interrupt when we enable the TX irq.
@@ -1633,7 +1635,8 @@
 	} else {
 		up->bugs &= ~UART_BUG_TXEN;
 	}
-
+#endif
+	
 	spin_unlock_irqrestore(&up->port.lock, flags);
 
 	/*