summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-2.6.25/070-bcm963xx_fix_uart_isr.patch
blob: 38aef5da1c3e57ec0897055cf816567072ca93f3 (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
32
33
From 7bc3950017d2c54883591367723b7fd84cc65d6f Mon Sep 17 00:00:00 2001
From: Axel Gembe <ago@bastart.eu.org>
Date: Sun, 18 May 2008 12:09:14 +0200
Subject: [PATCH] bcm963xx: fix uart isr

The ISR ended up in an endless loop because the TX ISR never got used or masked.
This patch basically makes the TX ISR mask the the TX interrupt when it
encounters it, because it doesn't even use the TX interrupt.

Signed-off-by: Axel Gembe <ago@bastart.eu.org>
---
 drivers/serial/bcm63xx_cons.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Index: linux-2.6.25.4/drivers/serial/bcm63xx_cons.c
===================================================================
--- linux-2.6.25.4.orig/drivers/serial/bcm63xx_cons.c
+++ linux-2.6.25.4/drivers/serial/bcm63xx_cons.c
@@ -258,8 +258,14 @@ static void bcm_interrupt(int irq, void 
 	while (intStat) {
 		if (intStat & RXINT)
 			receive_chars(info);
+
+#if 0 /* This code is total bullshit, TXINT doesn't get masked anywhere, so this will give an endless loop */
+
 		else if (intStat & TXINT)
 			info->port->intStatus = TXINT;
+
+#endif /* 0 */
+
 		else		/* don't know what it was, so let's mask it */
 			info->port->intMask &= ~intStat;