Hello,
This is a patch code to sunxi uart which fixes incorrect value of
SXIUART_LCR register. The local variable 'lcd' in 'sxiuart_param'
function should have initial value before use it.
BRs,
Joey Yu
Index: arch/armv7/sunxi/sxiuart.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/sunxi/sxiuart.c,v
retrieving revision 1.3
diff -u -p -r1.3 sxiuart.c
--- arch/armv7/sunxi/sxiuart.c 6 Nov 2013 19:03:07 -0000 1.3
+++ arch/armv7/sunxi/sxiuart.c 22 Apr 2015 09:47:40 -0000
@@ -306,7 +306,7 @@ sxiuart_param(struct tty *tp, struct ter
int error;
tcflag_t oldcflag;
uint16_t ratediv;
- uint8_t lcr;
+ uint8_t lcr = 0;
if (t->c_ospeed < 0 || (t->c_ispeed && t->c_ispeed != t->c_ospeed))