Re: usb : serial : ch341 : set tty baud speed according to tty struct

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

 



On Wed, Feb 18, 2015 at 11:32:38AM +0700, Johan Hovold wrote:
> On Tue, Feb 17, 2015 at 10:45:11PM -0500, Nicolas PLANEL wrote:

> I believe the fix should be implemented slightly differently however.
> Most usb-serial driver call set_termios from open to handle this issue.
> It looks like you could simply replace the calls to set baudrate and
> "handshake" in open with
> 
> 	ch341_set_termios(tty, port, NULL);

You currently need to make sure tty is not NULL in case the device is
being used as a console by the way. Just skip the set_termios call in
that case.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux