linux/drivers/tty
Sonic Zhang 0f66e50af5 serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock
The RX lock is used to protect the RX buffer from concurrent access in DMA
mode between the timer and RX interrupt routines.  It is independent from
the uart lock which is used to protect the TX buffer.  It is possible for
a uart TX transfer to be started up from the RX interrupt handler if low
latency is enabled.  So we need to split the locks to avoid deadlocking in
this situation.

In PIO mode, the RX lock is not necessary because the handle_simple_irq
and handle_level_irq functions ensure driver interrupt handlers are called
once on one core.

And now that the RX path has its own lock, the TX interrupt has nothing to
do with the RX path, so disabling it at the same time.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
History 2011-02-03 14:44:54 -08:00
..
hvc virtio: console: Move file back to drivers/char/ 2011-02-03 14:43:12 -08:00
serial serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock 2011-02-03 14:44:54 -08:00
vt Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6 2011-02-01 08:05:19 +10:00
Makefile tty: move drivers/serial/ to drivers/tty/serial/ 2011-01-13 12:10:18 -08:00
n_gsm.c n_gsm: copy mtu over when configuring via ioctl interface 2011-02-03 14:43:43 -08:00
n_hdlc.c n_hdlc: fix read and write locking 2011-01-22 19:15:01 -08:00
n_r3964.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
n_tty.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
pty.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
sysrq.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2011-01-26 16:31:44 +10:00
tty_audit.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_buffer.c tty: prevent DOS in the flush_to_ldisc 2010-11-09 15:02:02 -08:00
tty_io.c Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6 2011-02-01 08:05:19 +10:00
tty_ioctl.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_ldisc.c TTY: ldisc, fix open flag handling 2010-11-29 14:51:54 -08:00
tty_mutex.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_port.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00