From c1fb70c680963e1b9e2ac714f82f797211b7e7d7 Mon Sep 17 00:00:00 2001 From: Luca Olivetti Date: Tue, 21 May 2013 13:31:31 +0200 Subject: [PATCH] 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=ca463617908496c6cf91e7bb59b04d8606c4bf5b 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=c98e71654531a8411c65fd6a5d167004874bfe3a but I only can test it with 500000. Patch made against mainline but tested with 3.4.45 Signed-off-by: Luca Olivetti Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/pl2303.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index dc74c25b383d5..97c1e6a9dd4f8 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c @@ -275,7 +275,7 @@ static void pl2303_set_termios(struct tty_struct *tty, u8 control; const int baud_sup[] = { 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, - 57600, 115200, 230400, 460800, 614400, + 57600, 115200, 230400, 460800, 500000, 614400, 921600, 1228800, 2457600, 3000000, 6000000 }; int baud_floor, baud_ceil; int k; -- 2.39.5