We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e85c50 commit f834443Copy full SHA for f834443
drivers/tty/serial/pxa_k1x.c
@@ -514,6 +514,7 @@ static inline void check_modem_status(struct uart_pxa_port *up)
514
if ((status & UART_MSR_ANY_DELTA) == 0)
515
return;
516
517
+ spin_lock(&up->port.lock);
518
if (status & UART_MSR_TERI)
519
up->port.icount.rng++;
520
if (status & UART_MSR_DDSR)
@@ -522,6 +523,7 @@ static inline void check_modem_status(struct uart_pxa_port *up)
522
523
uart_handle_dcd_change(&up->port, status & UART_MSR_DCD);
524
if (status & UART_MSR_DCTS)
525
uart_handle_cts_change(&up->port, status & UART_MSR_CTS);
526
+ spin_unlock(&up->port.lock);
527
528
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
529
}
0 commit comments