st-asc.c (61b7369483efb5e0a9f3b48e75fac00d46d661e0) st-asc.c (fd2b55f86b8b25afc5b6e7dff53dddb3fd0dd211)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * st-asc.c: ST Asynchronous serial controller (ASC) driver
4 *
5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
6 */
7
8#include <linux/module.h>

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

245 ({}));
246}
247
248static void asc_receive_chars(struct uart_port *port)
249{
250 struct tty_port *tport = &port->state->port;
251 unsigned long status, mode;
252 unsigned long c = 0;
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * st-asc.c: ST Asynchronous serial controller (ASC) driver
4 *
5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
6 */
7
8#include <linux/module.h>

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

245 ({}));
246}
247
248static void asc_receive_chars(struct uart_port *port)
249{
250 struct tty_port *tport = &port->state->port;
251 unsigned long status, mode;
252 unsigned long c = 0;
253 char flag;
253 u8 flag;
254 bool ignore_pe = false;
255
256 /*
257 * Datasheet states: If the MODE field selects an 8-bit frame then
258 * this [parity error] bit is undefined. Software should ignore this
259 * bit when reading 8-bit frames.
260 */
261 mode = asc_in(port, ASC_CTL) & ASC_CTL_MODE_MSK;

--- 712 unchanged lines hidden ---
254 bool ignore_pe = false;
255
256 /*
257 * Datasheet states: If the MODE field selects an 8-bit frame then
258 * this [parity error] bit is undefined. Software should ignore this
259 * bit when reading 8-bit frames.
260 */
261 mode = asc_in(port, ASC_CTL) & ASC_CTL_MODE_MSK;

--- 712 unchanged lines hidden ---