linux/drivers/tty/serial/8250
John Ogness eda0cd3546 tty: serial: 8250: omap: synchronize rx_running
The rx_running flag should show if DMA is currently active. However
there is a window between when the flag is set/cleared and when
the DMA is started/stopped. Because the flag is queried from both
hard and soft irq contexts, the driver can make incorrect
decisions and do things like start a DMA transfer using a buffer
that is already setup to be used for a DMA transfer.

This patch adds a spinlock to synchronize the rx_running flag and
close the above mentioned window.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-06 22:27:01 +02:00
..
8250.h serial: 8250: Decouple RSA probe 2015-03-26 18:18:20 +01:00
8250_accent.c
8250_acorn.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_boca.c
8250_core.c serial: 8250: remove Kconfig indirection 2015-05-06 22:27:00 +02:00
8250_dma.c serial: 8250_dma: don't bother DMA with small transfers 2015-02-02 10:11:26 -08:00
8250_dw.c serial: 8250_dw: only get the clock rate in one place 2015-03-26 23:04:42 +01:00
8250_early.c Devicetree updates for 4.1: 2015-04-24 08:46:18 -07:00
8250_em.c serial: 8250: remove the redundant include 2015-03-26 22:21:08 +01:00
8250_exar_st16c554.c
8250_fintek.c PNP: tty/serial/8250/8250_fintek: Use module_pnp_driver to register driver 2015-03-18 22:39:18 +01:00
8250_fourport.c
8250_fsl.c serial: 8250: introduce up_to_u8250p() helper 2014-07-17 18:16:23 -07:00
8250_gsc.c parisc: Fix interrupt routing for C8000 serial ports 2013-07-31 23:42:32 +02:00
8250_hp300.c serial: 8250: remove the redundant include 2015-03-26 22:21:08 +01:00
8250_hub6.c
8250_mtk.c More ACPI and power management updates for 3.19-rc1 2014-12-18 20:28:33 -08:00
8250_omap.c tty: serial: 8250: omap: synchronize rx_running 2015-05-06 22:27:01 +02:00
8250_pci.c serial: 8250_pci: Add support for 16 port Exar boards 2015-04-28 20:22:31 +02:00
8250_pnp.c serial: 8250_pnp: Enable PNP_CONSOLE for console ports 2015-02-02 10:11:25 -08:00
Kconfig serial: 8250_pci: replace switch-case by formula 2015-03-26 23:00:36 +01:00
Makefile tty: serial: Add 8250-core based omap driver 2014-11-05 19:05:13 -08:00
serial_cs.c tty: delete non-required instances of include <linux/init.h> 2014-01-07 17:05:21 -08:00