]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: ath79: fix ar933x uart parity mode
authorStefan Hellermann <stefan@the2masters.de>
Mon, 17 Jun 2019 13:43:59 +0000 (15:43 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 19 Jun 2019 20:39:49 +0000 (13:39 -0700)
While trying to get the uart with parity working I found setting even
parity enabled odd parity insted. Fix the register settings to match
the datasheet of AR9331.

A similar patch was created by 8devices, but not sent upstream.
https://github.com/8devices/openwrt-8devices/commit/77c5586ade3bb72cda010afad3f209ed0c98ea7c

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/mach-ath79/ar933x_uart.h

index c2917b39966bf18797b6e4885d5f713b52e2b11d..bba2c883795163a43056c61946285eddd80cf282 100644 (file)
@@ -27,8 +27,8 @@
 #define AR933X_UART_CS_PARITY_S                0
 #define AR933X_UART_CS_PARITY_M                0x3
 #define          AR933X_UART_CS_PARITY_NONE    0
-#define          AR933X_UART_CS_PARITY_ODD     1
-#define          AR933X_UART_CS_PARITY_EVEN    2
+#define          AR933X_UART_CS_PARITY_ODD     2
+#define          AR933X_UART_CS_PARITY_EVEN    3
 #define AR933X_UART_CS_IF_MODE_S       2
 #define AR933X_UART_CS_IF_MODE_M       0x3
 #define          AR933X_UART_CS_IF_MODE_NONE   0