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