tty: serial: fsl_lpuart: clear LPUART Status Register in lpuart32_shutdown()
authorSherry Sun <sherry.sun@nxp.com>
Fri, 25 Nov 2022 10:19:53 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:05:33 +0000 (15:05 +0100)
commit4029dfc034febb54f6dd8ea83568accc943bc088
tree6f72bbf00d9751c8f2c7f39bd9176d4998577fb9
parent1d4bd0e4ae4ba95892bef919a8d4d3f08f122d7e
tty: serial: fsl_lpuart: clear LPUART Status Register in lpuart32_shutdown()

The LPUART Status Register needs to be cleared when closing the uart
port to get a clean environment when reopening the uart.

Fixes: 380c966c093e ("tty: serial: fsl_lpuart: add 32-bit register interface support")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20221125101953.18753-4-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c