diff options
-rw-r--r-- | drivers/usb/serial/cp210x.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 5c3e8592fd22..8dbf51a43c45 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -394,10 +394,10 @@ static unsigned int cp210x_quantise_baudrate(unsigned int baud) { | |||
394 | else if (baud <= 491520) baud = 460800; | 394 | else if (baud <= 491520) baud = 460800; |
395 | else if (baud <= 567138) baud = 500000; | 395 | else if (baud <= 567138) baud = 500000; |
396 | else if (baud <= 670254) baud = 576000; | 396 | else if (baud <= 670254) baud = 576000; |
397 | else if (baud <= 1053257) baud = 921600; | 397 | else if (baud < 1000000) |
398 | else if (baud <= 1474560) baud = 1228800; | 398 | baud = 921600; |
399 | else if (baud <= 2457600) baud = 1843200; | 399 | else if (baud > 2000000) |
400 | else baud = 3686400; | 400 | baud = 2000000; |
401 | return baud; | 401 | return baud; |
402 | } | 402 | } |
403 | 403 | ||
@@ -615,7 +615,8 @@ static void cp210x_change_speed(struct tty_struct *tty, | |||
615 | 615 | ||
616 | baud = tty->termios->c_ospeed; | 616 | baud = tty->termios->c_ospeed; |
617 | 617 | ||
618 | /* This maps the requested rate to a rate valid on cp2102 or cp2103. | 618 | /* This maps the requested rate to a rate valid on cp2102 or cp2103, |
619 | * or to an arbitrary rate in [1M,2M]. | ||
619 | * | 620 | * |
620 | * NOTE: B0 is not implemented. | 621 | * NOTE: B0 is not implemented. |
621 | */ | 622 | */ |