Skip to content

Commit b9208c7

Browse files
Frank Schäfergregkh
authored andcommitted
usb: pl2303: remove 500000 baud from the list of standard baud rates
Commit 0c967e7 "USB: serial: pl2303 works at 500kbps" added 500000 baud to the list of supported standard baud rates. But the reason why the driver works with this baud rate is, that since commit 8d48fdf "USB: PL2303: correctly handle baudrates above 115200" a second (divisor based) baud rate encoding method is used for values above 115200 baud, which is not limited to a fixed set of standard baud rates. Remove the 500000 baud value from the list of standard baud rates again, because this list is only used with the direct baud rate encoding method and 500000 baud is not supported with this method. Signed-off-by: Frank Schäfer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 75417d9 commit b9208c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/serial/pl2303.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ static void pl2303_encode_baudrate(struct tty_struct *tty,
291291
const int baud_sup[] = { 75, 150, 300, 600, 1200, 1800, 2400,
292292
3600, 4800, 7200, 9600, 14400, 19200,
293293
28800, 38400, 57600, 115200, 230400,
294-
460800, 500000, 614400, 921600,
295-
1228800, 2457600, 3000000, 6000000 };
294+
460800, 614400, 921600, 1228800,
295+
2457600, 3000000, 6000000 };
296296
int i;
297297

298298
/* Set baudrate to nearest supported value */

0 commit comments

Comments
 (0)