aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250/8250_exar.c
diff options
context:
space:
mode:
authorGravatar Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> 2022-06-24 23:42:05 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2022-06-27 14:44:20 +0200
commitf8ba5680a56be696b3f4343ed0a591abab807da4 (patch)
tree383b12e17a41744667e77dd492fa2e93a8947075 /drivers/tty/serial/8250/8250_exar.c
parentserial: Consolidate BOTH_EMPTY use (diff)
downloadlinux-f8ba5680a56be696b3f4343ed0a591abab807da4.tar.gz
linux-f8ba5680a56be696b3f4343ed0a591abab807da4.tar.bz2
linux-f8ba5680a56be696b3f4343ed0a591abab807da4.zip
serial: 8250: make saved LSR larger
DW flags address received as BIT(8) in LSR. In order to not lose that on read, enlarge lsr_saved_flags to u16. Adjust lsr/status variables and related call chains to use u16. Technically, some of these type conversion would not be needed but it doesn't hurt to be consistent. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220624204210.11112-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_exar.c')
-rw-r--r--drivers/tty/serial/8250/8250_exar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c
index 528779b40049..3d999eec4087 100644
--- a/drivers/tty/serial/8250/8250_exar.c
+++ b/drivers/tty/serial/8250/8250_exar.c
@@ -195,11 +195,11 @@ static int xr17v35x_startup(struct uart_port *port)
static void exar_shutdown(struct uart_port *port)
{
- unsigned char lsr;
bool tx_complete = false;
struct uart_8250_port *up = up_to_u8250p(port);
struct circ_buf *xmit = &port->state->xmit;
int i = 0;
+ u16 lsr;
do {
lsr = serial_in(up, UART_LSR);