~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/tty/serial/bcm63xx_uart.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
                /* get overrun/fifo empty information from ier
251
251
                 * register */
252
252
                iestat = bcm_uart_readl(port, UART_IR_REG);
 
253
 
 
254
                if (unlikely(iestat & UART_IR_STAT(UART_IR_RXOVER))) {
 
255
                        unsigned int val;
 
256
 
 
257
                        /* fifo reset is required to clear
 
258
                         * interrupt */
 
259
                        val = bcm_uart_readl(port, UART_CTL_REG);
 
260
                        val |= UART_CTL_RSTRXFIFO_MASK;
 
261
                        bcm_uart_writel(port, val, UART_CTL_REG);
 
262
 
 
263
                        port->icount.overrun++;
 
264
                        tty_insert_flip_char(tty, 0, TTY_OVERRUN);
 
265
                }
 
266
 
253
267
                if (!(iestat & UART_IR_STAT(UART_IR_RXNOTEMPTY)))
254
268
                        break;
255
269
 
284
298
                if (uart_handle_sysrq_char(port, c))
285
299
                        continue;
286
300
 
287
 
                if (unlikely(iestat & UART_IR_STAT(UART_IR_RXOVER))) {
288
 
                        port->icount.overrun++;
289
 
                        tty_insert_flip_char(tty, 0, TTY_OVERRUN);
290
 
                }
291
301
 
292
302
                if ((cstat & port->ignore_status_mask) == 0)
293
303
                        tty_insert_flip_char(tty, c, flag);