clps711x.c (61b7369483efb5e0a9f3b48e75fac00d46d661e0) clps711x.c (fd2b55f86b8b25afc5b6e7dff53dddb3fd0dd211)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Driver for CLPS711x serial ports
4 *
5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
6 *
7 * Copyright 1999 ARM Limited
8 * Copyright (C) 2000 Deep Blue Solutions Ltd.

--- 78 unchanged lines hidden (view full) ---

87 enable_irq(port->irq);
88 }
89}
90
91static irqreturn_t uart_clps711x_int_rx(int irq, void *dev_id)
92{
93 struct uart_port *port = dev_id;
94 struct clps711x_port *s = dev_get_drvdata(port->dev);
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Driver for CLPS711x serial ports
4 *
5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
6 *
7 * Copyright 1999 ARM Limited
8 * Copyright (C) 2000 Deep Blue Solutions Ltd.

--- 78 unchanged lines hidden (view full) ---

87 enable_irq(port->irq);
88 }
89}
90
91static irqreturn_t uart_clps711x_int_rx(int irq, void *dev_id)
92{
93 struct uart_port *port = dev_id;
94 struct clps711x_port *s = dev_get_drvdata(port->dev);
95 unsigned int status, flg;
95 unsigned int status;
96 u16 ch;
96 u16 ch;
97 u8 flg;
97
98 for (;;) {
99 u32 sysflg = 0;
100
101 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg);
102 if (sysflg & SYSFLG_URXFE)
103 break;
104

--- 459 unchanged lines hidden ---
98
99 for (;;) {
100 u32 sysflg = 0;
101
102 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg);
103 if (sysflg & SYSFLG_URXFE)
104 break;
105

--- 459 unchanged lines hidden ---