Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267330
b: refs/heads/master
c: e44aabd
h: refs/heads/master
v: v3
  • Loading branch information
Marcus Folkesson authored and Greg Kroah-Hartman committed Sep 22, 2011
1 parent 5ff6a56 commit c2151d5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d4008ebb1c971ce4baf57e45993690b0fa6d9f9
refs/heads/master: e44aabd649c80e8be16ede3ed3cbff6fb2561ca9
20 changes: 20 additions & 0 deletions trunk/drivers/tty/serial/pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ static inline void receive_chars(struct uart_pxa_port *up, int *status)
int max_count = 256;

do {
/* work around Errata #20 according to
* Intel(R) PXA27x Processor Family
* Specification Update (May 2005)
*
* Step 2
* Disable the Reciever Time Out Interrupt via IER[RTOEI]
*/
up->ier &= ~UART_IER_RTOIE;
serial_out(up, UART_IER, up->ier);

ch = serial_in(up, UART_RX);
flag = TTY_NORMAL;
up->port.icount.rx++;
Expand Down Expand Up @@ -156,6 +166,16 @@ static inline void receive_chars(struct uart_pxa_port *up, int *status)
*status = serial_in(up, UART_LSR);
} while ((*status & UART_LSR_DR) && (max_count-- > 0));
tty_flip_buffer_push(tty);

/* work around Errata #20 according to
* Intel(R) PXA27x Processor Family
* Specification Update (May 2005)
*
* Step 6:
* No more data in FIFO: Re-enable RTO interrupt via IER[RTOIE]
*/
up->ier |= UART_IER_RTOIE;
serial_out(up, UART_IER, up->ier);
}

static void transmit_chars(struct uart_pxa_port *up)
Expand Down

0 comments on commit c2151d5

Please sign in to comment.