aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2017-10-12 10:50:08 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2017-10-29 23:41:00 +0100
commitcf9e0a59aabd84a409a44fd39f6b03a064a82786 (patch)
treeb71834a2483db031f3c0a254ff551faf2beb9e67 /target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch
parent1d30869cd2f589b27227428863ebd201099106ce (diff)
downloadupstream-cf9e0a59aabd84a409a44fd39f6b03a064a82786.tar.gz
upstream-cf9e0a59aabd84a409a44fd39f6b03a064a82786.tar.bz2
upstream-cf9e0a59aabd84a409a44fd39f6b03a064a82786.zip
ar7: add kernel 4.9 support
Compile and run tested on WAG354Gv1. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch')
-rw-r--r--target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch b/target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch
new file mode 100644
index 0000000000..7567b848e0
--- /dev/null
+++ b/target/linux/ar7/patches-4.9/001-mips-ar7-fix-serial.patch
@@ -0,0 +1,23 @@
+From 443ab715a40881d6c9ba11b027ba154bac904cb0 Mon Sep 17 00:00:00 2001
+From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
+Date: Sat, 10 May 2014 23:19:08 +0200
+Subject: [PATCH] MIPS/AR7: ensure that serial ports are properly set up
+
+without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is
+never copied, resulting in a dead port.
+
+Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
+---
+ arch/mips/ar7/platform.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/mips/ar7/platform.c
++++ b/arch/mips/ar7/platform.c
+@@ -576,6 +576,7 @@ static int __init ar7_register_uarts(voi
+ 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;