]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: remove unneeded imx_transmit_buffer() from imx_start_tx()
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 9 Dec 2014 09:11:24 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:23:07 +0000 (14:23 -0800)
commite6bf28840289d6ca24cd17171e3f8589e3c3e038
tree521642ea7e22099e5149a5fc7ec6deb3a7488506
parent9ed2b2e99850b358f7d28f254638ff76c5299e70
serial: imx: remove unneeded imx_transmit_buffer() from imx_start_tx()

Use imx_start_tx() just to enable the TX interrupt. It's the job of the
TX interrupt ISR to fill the transmit buffer, then. If the transmit buffer
is empty, the TX interrupt should be executed as soon as the start_tx()
enables the interrupt, so there is no reason for the extra
imx_transmit_buffer() call, here. Remove it.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Andy Lowe <andy_lowe@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c