21285.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | 21285.c (fd2b55f86b8b25afc5b6e7dff53dddb3fd0dd211) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for the serial port on the 21285 StrongArm-110 core logic chip. 4 * 5 * Based on drivers/char/serial.c 6 */ 7#include <linux/module.h> 8#include <linux/tty.h> --- 103 unchanged lines hidden (view full) --- 112 disable_irq_nosync(IRQ_CONRX); 113 rx_disable(port); 114 } 115} 116 117static irqreturn_t serial21285_rx_chars(int irq, void *dev_id) 118{ 119 struct uart_port *port = dev_id; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for the serial port on the 21285 StrongArm-110 core logic chip. 4 * 5 * Based on drivers/char/serial.c 6 */ 7#include <linux/module.h> 8#include <linux/tty.h> --- 103 unchanged lines hidden (view full) --- 112 disable_irq_nosync(IRQ_CONRX); 113 rx_disable(port); 114 } 115} 116 117static irqreturn_t serial21285_rx_chars(int irq, void *dev_id) 118{ 119 struct uart_port *port = dev_id; |
120 unsigned int status, ch, flag, rxs, max_count = 256; | 120 unsigned int status, rxs, max_count = 256; 121 u8 ch, flag; |
121 122 status = *CSR_UARTFLG; 123 while (!(status & 0x10) && max_count--) { 124 ch = *CSR_UARTDR; 125 flag = TTY_NORMAL; 126 port->icount.rx++; 127 128 rxs = *CSR_RXSTAT | RXSTAT_DUMMY_READ; --- 389 unchanged lines hidden --- | 122 123 status = *CSR_UARTFLG; 124 while (!(status & 0x10) && max_count--) { 125 ch = *CSR_UARTDR; 126 flag = TTY_NORMAL; 127 port->icount.rx++; 128 129 rxs = *CSR_RXSTAT | RXSTAT_DUMMY_READ; --- 389 unchanged lines hidden --- |