]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: PL011: replace UART_MIS reading with _RIS & _IMSC
authorAndre Przywara <andre.przywara@arm.com>
Thu, 21 May 2015 16:26:19 +0000 (17:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:08:51 +0000 (13:08 -0700)
commit3ad170201e43add3b4a65fa0df550757a6b1f24b
treea4a14d25cdbbec21764c822c7a9fc73774ee78e3
parent89724d1cee1b3f0aa5aabdadb482ab530ec6d89d
drivers: PL011: replace UART_MIS reading with _RIS & _IMSC

The PL011 register UART_MIS is actually a bitwise AND of the
UART_RIS and the UART_MISC register.
Since the SBSA UART does not include the _MIS register, use the
two separate registers to get the same behaviour. Since we are
inside the spinlock and we read the _IMSC register only once, there
should be no race issue.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Mark Langsdorf <mlangsdo@redhat.com>
Tested-by: Naresh Bhat <nbhat@cavium.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c