projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b03ab
)
MIPS: AR7: Ensure that serial ports are properly set up
author
Oswald Buddenhagen
<
[email protected]
>
Sun, 29 Oct 2017 15:27:20 +0000
(16:27 +0100)
committer
James Hogan
<
[email protected]
>
Wed, 8 Nov 2017 14:57:55 +0000
(14:57 +0000)
Without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is
never copied, resulting in a dead port.
Fixes: 154615d55459 ("MIPS: AR7: Use correct UART port type")
Signed-off-by: Oswald Buddenhagen <
[email protected]
>
[jonas.gorski: add Fixes tag]
Signed-off-by: Jonas Gorski <
[email protected]
>
Reviewed-by: Florian Fainelli <
[email protected]
>
Cc: Ralf Baechle <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Yoshihiro YUNOMAE <
[email protected]
>
Cc: Nicolas Schichan <
[email protected]
>
Cc: Oswald Buddenhagen <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc: <
[email protected]
>
Patchwork: https://patchwork.linux-mips.org/patch/17543/
Signed-off-by: James Hogan <
[email protected]
>
arch/mips/ar7/platform.c
patch
|
blob
|
history
diff --git
a/arch/mips/ar7/platform.c
b/arch/mips/ar7/platform.c
index f2c9f90c5f13e071052da17d1c3b49e19a6e0344..4674f1efbe7a597b0387936d79af53b3f62db6b5 100644
(file)
--- a/
arch/mips/ar7/platform.c
+++ b/
arch/mips/ar7/platform.c
@@
-575,6
+575,7
@@
static int __init ar7_register_uarts(void)
uart_port.type = PORT_AR7;
uart_port.uartclk = clk_get_rate(bus_clk) / 2;
uart_port.iotype = UPIO_MEM32;
+ uart_port.flags = UPF_FIXED_TYPE;
uart_port.regshift = 2;
uart_port.line = 0;