Vignesh R 75f54acc08 serial: 8250_omap: pause DMA only if DMA transfer in progress
It is possible that DMA transfer is already complete but, completion
handler is yet to be called, when dmaengine_pause() is called in case of
error condition(like break/rx timeout). This leads to dmaengine_pause()
API to return EINVAL (as descriptor is already NULL) causing
rx_dma_broken flag to be set and effectively disabling RX DMA.
Fix this by calling dmaengine_pause() only when transfer is in progress.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-20 14:44:37 +01:00
..
2015-11-20 16:19:54 -08:00
2017-01-12 11:51:24 +01:00
2016-02-06 22:16:21 -08:00
2014-12-14 16:10:09 -08:00
2016-10-30 06:42:10 -04:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00