mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
13 lines
302 B
Diff
13 lines
302 B
Diff
|
--- 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);
|
||
|
|