ramips: add a baurate hack
[openwrt/openwrt.git] / target / linux / ramips / patches-3.18 / 0304-baud_250000.patch
1 --- a/drivers/tty/serial/serial_core.c
2 +++ b/drivers/tty/serial/serial_core.c
3 @@ -356,6 +356,9 @@
4 else if (flags == UPF_SPD_WARP)
5 altbaud = 460800;
6
7 + if (tty_termios_baud_rate(termios) == 2500000)
8 + return 250000;
9 +
10 for (try = 0; try < 2; try++) {
11 baud = tty_termios_baud_rate(termios);
12