diff options
-rw-r--r-- | drivers/serial/bfin_5xx.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 854e96dfb070..ab583ef3a305 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -330,6 +330,11 @@ static void bfin_serial_tx_chars(struct bfin_serial_port *uart) | |||
330 | /* Clear TFI bit */ | 330 | /* Clear TFI bit */ |
331 | UART_PUT_LSR(uart, TFI); | 331 | UART_PUT_LSR(uart, TFI); |
332 | #endif | 332 | #endif |
333 | /* Anomaly notes: | ||
334 | * 05000215 - we always clear ETBEI within last UART TX | ||
335 | * interrupt to end a string. It is always set | ||
336 | * when start a new tx. | ||
337 | */ | ||
333 | UART_CLEAR_IER(uart, ETBEI); | 338 | UART_CLEAR_IER(uart, ETBEI); |
334 | return; | 339 | return; |
335 | } | 340 | } |
@@ -528,6 +533,11 @@ static irqreturn_t bfin_serial_dma_tx_int(int irq, void *dev_id) | |||
528 | if (!(get_dma_curr_irqstat(uart->tx_dma_channel)&DMA_RUN)) { | 533 | if (!(get_dma_curr_irqstat(uart->tx_dma_channel)&DMA_RUN)) { |
529 | disable_dma(uart->tx_dma_channel); | 534 | disable_dma(uart->tx_dma_channel); |
530 | clear_dma_irqstat(uart->tx_dma_channel); | 535 | clear_dma_irqstat(uart->tx_dma_channel); |
536 | /* Anomaly notes: | ||
537 | * 05000215 - we always clear ETBEI within last UART TX | ||
538 | * interrupt to end a string. It is always set | ||
539 | * when start a new tx. | ||
540 | */ | ||
531 | UART_CLEAR_IER(uart, ETBEI); | 541 | UART_CLEAR_IER(uart, ETBEI); |
532 | xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); | 542 | xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); |
533 | uart->port.icount.tx += uart->tx_count; | 543 | uart->port.icount.tx += uart->tx_count; |
@@ -969,6 +979,10 @@ static void bfin_serial_reset_irda(struct uart_port *port) | |||
969 | } | 979 | } |
970 | 980 | ||
971 | #ifdef CONFIG_CONSOLE_POLL | 981 | #ifdef CONFIG_CONSOLE_POLL |
982 | /* Anomaly notes: | ||
983 | * 05000099 - Because we only use THRE in poll_put and DR in poll_get, | ||
984 | * losing other bits of UART_LSR is not a problem here. | ||
985 | */ | ||
972 | static void bfin_serial_poll_put_char(struct uart_port *port, unsigned char chr) | 986 | static void bfin_serial_poll_put_char(struct uart_port *port, unsigned char chr) |
973 | { | 987 | { |
974 | struct bfin_serial_port *uart = (struct bfin_serial_port *)port; | 988 | struct bfin_serial_port *uart = (struct bfin_serial_port *)port; |