diff options
| author | Frank Schäfer <fschaefer.oss@googlemail.com> | 2013-08-06 13:26:28 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 18:43:41 -0400 |
| commit | 61fa8d694b8547894b57ea0d99d0120a58f6ebf8 (patch) | |
| tree | 082c2fad20454ee01afd460c98e1e8169ccbcea0 | |
| parent | b5c16c6a031c52cc4b7dda6c3de46462fbc92eab (diff) | |
usb: pl2303: also use the divisor based baud rate encoding method for baud rates < 115200 with HX chips
Now that the divisor based baud rate encoding method has been fixed and
extended, it can also be used for baud rates < 115200 baud with HX
chips.
This makes it possible to adjust the baud rate almost continuously
instead of just beeing able to select between 16 fixed standard values.
Tested with a PL2303HX 04463A (week 46, 2004, rev 3A).
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/serial/pl2303.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 61c9f9d28ee9..09fb55cf3be7 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
| @@ -395,7 +395,7 @@ static void pl2303_encode_baudrate(struct tty_struct *tty, | |||
| 395 | * 2) Divisor based method: encodes a divisor to a base value (12MHz*32) | 395 | * 2) Divisor based method: encodes a divisor to a base value (12MHz*32) |
| 396 | * => supported by HX chips (and likely not by type_0/1 chips) | 396 | * => supported by HX chips (and likely not by type_0/1 chips) |
| 397 | */ | 397 | */ |
| 398 | if (type != HX || baud <= 115200) | 398 | if (type != HX) |
| 399 | baud = pl2303_baudrate_encode_direct(baud, type, buf); | 399 | baud = pl2303_baudrate_encode_direct(baud, type, buf); |
| 400 | else | 400 | else |
| 401 | baud = pl2303_baudrate_encode_divisor(baud, type, buf); | 401 | baud = pl2303_baudrate_encode_divisor(baud, type, buf); |
