[kernel] refreshed layer7 patches for 2.6.26.8, 2.6.27.21, 2.6.28.9 and 2.6.29.1
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 023-bugfix-serial-interrupt.patch
1 --- a/drivers/serial/pxa.c
2 +++ b/drivers/serial/pxa.c
3 @@ -235,15 +235,19 @@ static inline irqreturn_t serial_pxa_irq
4 struct uart_pxa_port *up = dev_id;
5 unsigned int iir, lsr;
6
7 + serial_out(up, UART_MCR, serial_in(up, UART_MCR) & ~UART_MCR_RTS); // Clear RTS
8 iir = serial_in(up, UART_IIR);
9 if (iir & UART_IIR_NO_INT)
10 - return IRQ_NONE;
11 + {
12 + //printk(KERN_WARNING "serial_pxa_irq: odd -- interrupt triggered, but no interrupt in IIR: %08x\n",iir);
13 + }
14 lsr = serial_in(up, UART_LSR);
15 if (lsr & UART_LSR_DR)
16 receive_chars(up, &lsr);
17 check_modem_status(up);
18 if (lsr & UART_LSR_THRE)
19 transmit_chars(up);
20 + serial_out(up, UART_MCR, serial_in(up, UART_MCR) | UART_MCR_RTS); // Assert RTS
21 return IRQ_HANDLED;
22 }
23
This page took 0.042056 seconds and 5 git commands to generate.