On Thu, Aug 18, 2022 at 04:12:54PM +0200, Pali Rohár wrote: > On Sunday 24 July 2022 14:20:58 Johan Hovold wrote: > > > @@ -2774,9 +2785,12 @@ static void ftdi_set_termios(struct tty_struct *tty, > > > /* Drop RTS and DTR */ > > > clear_mctrl(port, TIOCM_DTR | TIOCM_RTS); > > > } else { > > > + speed_t old_baud = > > > + old_termios ? tty_termios_baud_rate(old_termios) : 0; > > > > Just use 9600 if you don't have an old termios. The termios rate should > > be valid in that case. > > Ok Please trim your replies. Johan