68963522662c29a2072bf12a55f7c44f22256a7b
[openwrt.git] / target / linux / ar7 / patches-3.14 / 001-mips-ar7-fix-serial.patch
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
6 without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is
7 never copied, resulting in a dead port.
8
9 Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
10 ---
11  arch/mips/ar7/platform.c | 1 +
12  1 file changed, 1 insertion(+)
13
14 --- a/arch/mips/ar7/platform.c
15 +++ b/arch/mips/ar7/platform.c
16 @@ -581,6 +581,7 @@ static int __init ar7_register_uarts(voi
17         uart_port.type          = PORT_AR7;
18         uart_port.uartclk       = clk_get_rate(bus_clk) / 2;
19         uart_port.iotype        = UPIO_MEM32;
20 +       uart_port.flags         = UPF_FIXED_TYPE;
21         uart_port.regshift      = 2;
22  
23         uart_port.line          = 0;