tty: serial: imx: disable the break condition when shutdown the uart port
authorSherry Sun <sherry.sun@nxp.com>
Wed, 14 Dec 2022 03:11:37 +0000 (11:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:05:37 +0000 (15:05 +0100)
commit509597ebcac4d61fc012ea3ccd364581a8ca3926
tree68444541984dfe7da655c0584b6952008c993d64
parent10929eac4144a656a966da69d8a5491395dc0a99
tty: serial: imx: disable the break condition when shutdown the uart port

The comment in imx_uart_shutdown() says to disable the break condition,
but it doesn't actually do that, here fix this by disabling UCR1_SNDBRK
when closing the uart port like other uart drivers do.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20221214031137.28815-4-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c