500-serial_kludge.patch 698 B

12345678910111213141516171819202122232425262728
  1. --- a/drivers/tty/serial/8250/8250_core.c
  2. +++ b/drivers/tty/serial/8250/8250_core.c
  3. @@ -347,6 +347,13 @@ configured less than Maximum supported f
  4. .rxtrig_bytes = {1, 4, 8, 14},
  5. .flags = UART_CAP_FIFO,
  6. },
  7. + [PORT_AR7] = {
  8. + .name = "TI-AR7",
  9. + .fifo_size = 16,
  10. + .tx_loadsz = 16,
  11. + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00,
  12. + .flags = UART_CAP_FIFO | UART_CAP_AFE,
  13. + },
  14. };
  15. /* Uart divisor latch read */
  16. @@ -3348,7 +3355,11 @@ static void serial8250_console_putchar(s
  17. {
  18. struct uart_8250_port *up = up_to_u8250p(port);
  19. +#ifdef CONFIG_AR7
  20. + wait_for_xmitr(up, BOTH_EMPTY);
  21. +#else
  22. wait_for_xmitr(up, UART_LSR_THRE);
  23. +#endif
  24. serial_port_out(port, UART_TX, ch);
  25. }