Re: [PATCH v2 4/7] USB: serial: ftdi_sio: Do not reset baud rate to 9600 Baud on error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux