Skip to content

Commit 0c967e7

Browse files
olivlucagregkh
authored andcommitted
USB: serial: pl2303 works at 500kbps
My PL2303HX works at 500kbps after applying this patch. I suppose that it could work at other non standard speeds since this fix "correctly handle baudrates above 115200" https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/serial/pl2303.c?id=8d48fdf689fed2c73c493e5146d1463689246442 came after this one "fix baud rate handling in case of unsupported values" https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/serial/pl2303.c?id=25b8286805e856c8c7fda127018e31032c918015 but I only can test it with 500000. Patch made against mainline but tested with 3.4.45 Signed-off-by: Luca Olivetti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 021ad86 commit 0c967e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/serial/pl2303.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
275275
u8 control;
276276
const int baud_sup[] = { 75, 150, 300, 600, 1200, 1800, 2400, 3600,
277277
4800, 7200, 9600, 14400, 19200, 28800, 38400,
278-
57600, 115200, 230400, 460800, 614400,
278+
57600, 115200, 230400, 460800, 500000, 614400,
279279
921600, 1228800, 2457600, 3000000, 6000000 };
280280
int baud_floor, baud_ceil;
281281
int k;

0 commit comments

Comments
 (0)