@@ -889,15 +889,14 @@ static irqreturn_t __imx_uart_rxint(int irq, void *dev_id)
{
struct imx_port *sport = dev_id;
struct tty_port *port = &sport->port.state->port;
- typeof(sport->port.membase) membase = sport->port.membase;
u32 usr2, rx;
/* If we received something, check for 0xff flood */
- usr2 = readl(membase + USR2);
+ usr2 = imx_uart_readl(sport, USR2);
if (usr2 & USR2_RDR)
imx_uart_check_flood(sport, usr2);
- while ((rx = readl(membase + URXD0)) & URXD_CHARRDY) {
+ while ((rx = imx_uart_readl(sport, URXD0)) & URXD_CHARRDY) {
unsigned int flg = TTY_NORMAL;
sport->port.icount.rx++;
@@ -929,8 +928,9 @@ static irqreturn_t __imx_uart_rxint(int irq, void *dev_id)
flg = TTY_OVERRUN;
sport->port.sysrq = 0;
- } else if (uart_handle_sysrq_char(&sport->port, (unsigned char)rx))
+ } else if (uart_handle_sysrq_char(&sport->port, (unsigned char)rx)) {
continue;
+ }
if (sport->port.ignore_status_mask & URXD_DUMMY_READ)
continue;