Send all iflags from ttyNS via spi
authorMiroslav Ondra <ondra@faster.cz>
Wed, 24 Mar 2021 08:50:41 +0000 (09:50 +0100)
committerMiroslav Ondra <ondra@faster.cz>
Wed, 24 Mar 2021 08:50:41 +0000 (09:50 +0100)
modules/unipi/src/unipi_uart.c

index 3c87c232250f8dc6a77944e35a2073bd86446425..57944dd22a414467134a75a3c773ff3bf3de897b 100644 (file)
@@ -243,7 +243,7 @@ void neuronspi_uart_set_termios(struct uart_port *port, struct ktermios *termios
         spin_unlock_irq(&port->lock);
     }
 
-       if (termios && (!old || ((old->c_iflag & PARMRK) != (termios->c_iflag & PARMRK)))) {
+       if (termios && (!old || ((old->c_iflag) != (termios->c_iflag)))) {
                neuronspi_uart_set_iflags(n_port, termios->c_iflag);
        }
        if (termios && !old) {