serial: imx: Stop to receive in .stop_rx()
commitdedc64e02f5da1c7bd0b4ec232341047a8b0142b
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 2 Mar 2018 10:07:25 +0000 (2 11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 18:21:01 +0000 (9 10:21 -0800)
tree46fda2471e8defc0af3be5ff302075d3b0404ab7
parent02b0abd3bb93ea1d9818c5c5b1fcf293f81cee37
serial: imx: Stop to receive in .stop_rx()

When the UART is used in DMA mode, .stop_rx() does nothing if the port
isn't suspended. This is wrong as .stop_rx() should stop receiving
characters unconditionally. When the port is about to be closed the DMA
channel is stopped in .shutdown(), so this isn't necessary to be in
.stop_rx() here, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c