Message ID | 76A55B35-0954-4AEF-BAEB-61F2EF32CE95@sipradius.com |
---|---|
State | New |
Headers | show |
Series | Patch: Allow the use of the uart’s CTS (clear to send) signal to trigger the cd_change ldisk event. | expand |
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index c476d8843..8128f64c4 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -3515,6 +3515,10 @@ EXPORT_SYMBOL_GPL(uart_handle_dcd_change); */ void uart_handle_cts_change(struct uart_port *uport, bool active) { + struct tty_port *port = &uport->state->port; + struct tty_struct *tty = port->tty; + struct tty_ldisc *ld; + lockdep_assert_held_once(&uport->lock); uport->icount.cts++; @@ -3532,7 +3536,13 @@ void uart_handle_cts_change(struct uart_port *uport, bool active)