aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.18/0304-baud_250000.patch
diff options
context:
space:
mode:
authorJames <>2015-11-04 11:49:21 +0000
committerJames <>2015-11-04 11:49:21 +0000
commit716ca530e1c4515d8683c9d5be3d56b301758b66 (patch)
tree700eb5bcc1a462a5f21dcec15ce7c97ecfefa772 /target/linux/ramips/patches-3.18/0304-baud_250000.patch
downloadtrunk-47381-master.tar.gz
trunk-47381-master.tar.bz2
trunk-47381-master.zip
trunk-47381HEADmaster
Diffstat (limited to 'target/linux/ramips/patches-3.18/0304-baud_250000.patch')
-rw-r--r--target/linux/ramips/patches-3.18/0304-baud_250000.patch12
1 files changed, 12 insertions, 0 deletions
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
index 0000000..6a364c0
--- /dev/null
+++ b/target/linux/ramips/patches-3.18/0304-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 @@ uart_get_baud_rate(struct uart_port *por
+ 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);
+