]> git.baikalelectronics.ru Git - kernel.git/commit
serial/amba-pl011: Leave the TX IRQ alone when the UART is not open
authorDave Martin <Dave.Martin@arm.com>
Wed, 4 Mar 2015 12:27:34 +0000 (12:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:48:50 +0000 (03:48 +0100)
commitfc00464b5aba4c3d8938e4aa7f8ac85ed64f2618
treeb430ce4711f1ec4f3bbdf828ace890810672c12f
parent76386683bcb4671008cbf269cfce8bdfb0a6d06d
serial/amba-pl011: Leave the TX IRQ alone when the UART is not open

Getting the TX IRQ re-asserted from scratch can be inefficient in
some setups.

This patch avoids clearing the TX IRQ across pl011_shutdown()...
pl011_startup(), so that if the port is closed and reopened, the
IRQ will still work afterwards without having to bootstrap it again.

The TX IRQ continues to be masked in IMSC when the UART is not in
use.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c