[ARM] 4417/1: Serial: Fix AMBA drivers locking
commit2389b272168ceec056ca1d8a870a97fa9c26e11a
authorThomas Gleixner <tglx@linutronix.de>
Tue, 29 May 2007 20:53:50 +0000 (29 21:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 30 May 2007 13:33:01 +0000 (30 14:33 +0100)
treee3a8be37e9e97bb8e232fbe6bd7823799e6899c1
parent2ccdd1e77da52ad494e9af46bf272d816830cb28
[ARM] 4417/1: Serial: Fix AMBA drivers locking

The -rt patch triggered a lockdep warning in the amba serial drivers, which never
shows up on UP kernels. On SMP systems this would trigger as well.

Release the port lock before calling tty_flip_buffer_push() and reacquire it after
the call. This matches the code in the 8250 serial driver.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl010.c
drivers/serial/amba-pl011.c