999-baud_250000.patch 343 B

123456789101112
  1. --- a/drivers/tty/serial/serial_core.c
  2. +++ b/drivers/tty/serial/serial_core.c
  3. @@ -356,6 +356,9 @@ uart_get_baud_rate(struct uart_port *por
  4. else if (flags == UPF_SPD_WARP)
  5. altbaud = 460800;
  6. + if (tty_termios_baud_rate(termios) == 2500000)
  7. + return 250000;
  8. +
  9. for (try = 0; try < 2; try++) {
  10. baud = tty_termios_baud_rate(termios);