From: John Crispin Date: Mon, 19 Oct 2015 10:19:23 +0000 (+0000) Subject: ramips: add a baurate hack X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a4928e8d0fc0fbbd72b44af93eb1bbffb2922b95;p=openwrt%2Fsvn-archive%2Farchive.git ramips: add a baurate hack When talking to an atmel controller we need 9600 or 250000 baud. as 250000 does not exist we use 2500000. Signed-off-by: John Crispin Backport of r47204 SVN-Revision: 47228 --- diff --git a/target/linux/ramips/patches-3.18/999-baud_250000.patch b/target/linux/ramips/patches-3.18/999-baud_250000.patch new file mode 100644 index 0000000000..eebe31c918 --- /dev/null +++ b/target/linux/ramips/patches-3.18/999-baud_250000.patch @@ -0,0 +1,12 @@ +--- a/drivers/tty/serial/serial_core.c ++++ b/drivers/tty/serial/serial_core.c +@@ -356,6 +356,9 @@ + else if (flags == UPF_SPD_WARP) + altbaud = 460800; + ++ if (tty_termios_baud_rate(termios) == 2500000) ++ return 250000; ++ + for (try = 0; try < 2; try++) { + baud = tty_termios_baud_rate(termios); +