]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/serial/21285.c
[PATCH] TTY layer buffering revamp
[mirror_ubuntu-bionic-kernel.git] / drivers / serial / 21285.c
index b5cf39468d18bf66fdee5ff2fe87601698f0152d..221999bcf8fe3809b943e4f11c53ba4529810f52 100644 (file)
@@ -94,15 +94,6 @@ static irqreturn_t serial21285_rx_chars(int irq, void *dev_id, struct pt_regs *r
 
        status = *CSR_UARTFLG;
        while (!(status & 0x10) && max_count--) {
-               if (tty->flip.count >= TTY_FLIPBUF_SIZE) {
-                       if (tty->low_latency)
-                               tty_flip_buffer_push(tty);
-                       /*
-                        * If this failed then we will throw away the
-                        * bytes but must do so to clear interrupts
-                        */
-               }
-
                ch = *CSR_UARTDR;
                flag = TTY_NORMAL;
                port->icount.rx++;