From bc764b8fdb4346cb21f624e08231267d0ea9578b Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Mon, 8 Jul 2013 15:53:38 +0800 Subject: [PATCH] serial: fsl_lpuart: restore UARTCR2 after watermark setup is done Function lpuart_setup_watermark() clears some bits in register UARTCR2 before writing FIFO configuration registers as required by hardware. But it should restore UARTCR2 after that. Otherwise, we end up changing UARTCR2 register when setting up watermark, and that is not really desirable. At least, when low-level debug and earlyprint is enabled, serial console is broken due to it. Fix the problem by restoring UARTCR2 register at the end of function lpuart_setup_watermark(). Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed