001-mips-ar7-fix-serial.patch 802 B

1234567891011121314151617181920212223
  1. From 443ab715a40881d6c9ba11b027ba154bac904cb0 Mon Sep 17 00:00:00 2001
  2. From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
  3. Date: Sat, 10 May 2014 23:19:08 +0200
  4. Subject: [PATCH] MIPS/AR7: ensure that serial ports are properly set up
  5. without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is
  6. never copied, resulting in a dead port.
  7. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
  8. ---
  9. arch/mips/ar7/platform.c | 1 +
  10. 1 file changed, 1 insertion(+)
  11. --- a/arch/mips/ar7/platform.c
  12. +++ b/arch/mips/ar7/platform.c
  13. @@ -581,6 +581,7 @@ static int __init ar7_register_uarts(voi
  14. uart_port.type = PORT_AR7;
  15. uart_port.uartclk = clk_get_rate(bus_clk) / 2;
  16. uart_port.iotype = UPIO_MEM32;
  17. + uart_port.flags = UPF_FIXED_TYPE;
  18. uart_port.regshift = 2;
  19. uart_port.line = 0;