]> git.baikalelectronics.ru Git - kernel.git/commit
USB: pl2303: restrict the divisor based baud rate encoding method to the "HX" chip...
authorFrank Schäfer <fschaefer.oss@googlemail.com>
Tue, 30 Jul 2013 19:49:04 +0000 (21:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 01:12:38 +0000 (18:12 -0700)
commit6a934435b2279ca77bd9a627565002da8f98902d
tree6c58e7f0f1c1a30bdf780829590299641a504160
parent243037ddce453782d7ade3aaba2f0e1e8212284e
USB: pl2303: restrict the divisor based baud rate encoding method to the "HX" chip type

It's not clear if the type_0 and type_1 chips support the divisor based baud
rate encoding method, so don't use it until anyone with such chip has tested it
to avoid regressions with the following patches.

Even if it has been working fine with these chips since the code has been added
2 years ago, this change will not cause any regressions, because the baud rates
currently supported/allowed with the divisor based method are supported with
the direct method, too.

The code for the divisor based method also isn't entirely correct (yet), so that the
direct encoding method actually works better (sets the baud rate more precisely).

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c