summaryrefslogtreecommitdiff
path: root/drivers/serial/8250_early.c
diff options
context:
space:
mode:
authorYury Georgievskiy <ygeorgie@gmail.com>2010-07-20 22:26:50 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 20:47:45 (GMT)
commit0ac8382e9cfdd723445692fc97aaa4643929750d (patch)
treee42c65488ea8d839c39441dce939d21ba6d60ae6 /drivers/serial/8250_early.c
parent1b6331848b69d1ed165a6bdc75c4046d68767563 (diff)
downloadlinux-fsl-qoriq-0ac8382e9cfdd723445692fc97aaa4643929750d.tar.xz
serial: mcf: don't take spinlocks in already protected functions
Don't take the port spinlock in uart functions where the serial core already takes care of locking/unlocking them. The code would actually lock up on architectures where spinlocks are implemented. Also protect calling mcf_rx_chars/mcf_tx_chars in the interrupt handler by the port spinlock and use IRQ_RETVAL to return from isr. [akpm@linux-foundation.org: make irq-handler return value more explicit] Signed-off-by: Yury Georgievskiy <ygeorgie@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/8250_early.c')
0 files changed, 0 insertions, 0 deletions