[PATCH 1/3] serial: 8250: omap: pause DMA only if DMA transfer in progress

2017-01-13 Thread Vignesh R
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

[PATCH 1/3] serial: 8250: omap: pause DMA only if DMA transfer in progress

2017-01-13 Thread Vignesh R
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