ramips: add a baurate hack
[openwrt.git] / target / linux / ramips / patches-3.18 / 0304-baud_250000.patch
diff --git a/target/linux/ramips/patches-3.18/0304-baud_250000.patch b/target/linux/ramips/patches-3.18/0304-baud_250000.patch
new file mode 100644 (file)
index 0000000..eebe31c
--- /dev/null
@@ -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);