]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB: ftdi_sio: allow baud rate to be changed without raising RTS and DTR
authorPeter Favrholdt <pfavr@how.dk>
Thu, 22 Sep 2005 07:48:49 +0000 (00:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 22 Sep 2005 14:58:25 +0000 (07:58 -0700)
commit22f0d3667c5708c8b9aba1af3648651d44644c58
tree9a43f379879f0cf8cdf95f7f11edb9ae4ca39654
parentdf755a182e83d6815dc128b6faf7d9d1b7f02592
[PATCH] USB: ftdi_sio: allow baud rate to be changed without raising RTS and DTR

I'm using a 2 port USB RS232 dongle to connect to a serial-IR cradle for
a bar code reader). Detecting the baudrate of the serial-IR involves
keeping DTR low while changing baudrate.

This works using normal 16550A serial ports as well as the FTDI driver
version 1.4.0 (Linux 2.6.8) but stopped working with the change to
"ensure RTS and DTR are raised when changing baudrate" introduced in
version 1.4.1 (Linux 2.6.9).

The attached patch fixes this, so RTS and DTR is only raised when
changing baudrate iff the previous baudrate was B0.

Signed-off-by: Peter Favrholdt <pfavr@how.dk>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/serial/ftdi_sio.c