ar7: backport an upstream fixing serial console
authorFlorian Fainelli <florian@openwrt.org>
Fri, 27 Jun 2014 22:17:00 +0000 (22:17 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 27 Jun 2014 22:17:00 +0000 (22:17 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 41363

target/linux/ar7/patches-3.10/001-mips-ar7-fix-serial.patch [new file with mode: 0644]

diff --git a/target/linux/ar7/patches-3.10/001-mips-ar7-fix-serial.patch b/target/linux/ar7/patches-3.10/001-mips-ar7-fix-serial.patch
new file mode 100644 (file)
index 0000000..f556ee2
--- /dev/null
@@ -0,0 +1,28 @@
+From 443ab715a40881d6c9ba11b027ba154bac904cb0 Mon Sep 17 00:00:00 2001\r
+From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>\r
+Date: Sat, 10 May 2014 23:19:08 +0200\r
+Subject: [PATCH] MIPS/AR7: ensure that serial ports are properly set up\r
+\r
+without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is\r
+never copied, resulting in a dead port.\r
+\r
+Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>\r
+---\r
+ arch/mips/ar7/platform.c | 1 +\r
+ 1 file changed, 1 insertion(+)\r
+\r
+diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c\r
+index 7e2356f..e4f47d3 100644\r
+--- a/arch/mips/ar7/platform.c\r
++++ b/arch/mips/ar7/platform.c\r
+@@ -581,6 +581,7 @@ static int __init ar7_register_uarts(void)\r
+       uart_port.type          = PORT_AR7;\r
+       uart_port.uartclk       = clk_get_rate(bus_clk) / 2;\r
+       uart_port.iotype        = UPIO_MEM32;\r
++      uart_port.flags         = UPF_FIXED_TYPE;\r
+       uart_port.regshift      = 2;\r
\r
+       uart_port.line          = 0;\r
+-- \r
+1.8.5.3.2.g3dbf181\r
+\r