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
..
2015-03-26 23:00:36 +01:00
2015-03-26 22:49:10 +01:00
2015-04-07 11:07:20 +02:00
2014-11-25 17:06:39 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-03-26 22:49:10 +01:00
2015-03-26 22:49:10 +01:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2014-06-19 13:04:52 -07:00
2014-06-19 13:04:52 -07:00
2015-03-09 07:08:37 +01:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-03-26 22:49:10 +01:00
2014-06-19 13:04:52 -07:00