Re: [PATCH v2 1/6] serial: imx: only set DMA rx-ing when DMA starts

2017-07-06 Thread Uwe Kleine-König
On Thu, Jul 06, 2017 at 10:31:38AM +0200, Romain Perier wrote: > Hello, > > > Le 05/07/2017 à 15:29, Uwe Kleine-König a écrit : > > Hello, > > > > On Wed, Jul 05, 2017 at 03:07:01PM +0200, Romain Perier wrote: > >> From: Nandor Han > >> > >> Avoid the situation when `dma_is_rxing` could incorrec

Re: [PATCH v2 1/6] serial: imx: only set DMA rx-ing when DMA starts

2017-07-06 Thread Romain Perier
Hello, Le 05/07/2017 à 15:29, Uwe Kleine-König a écrit : > Hello, > > On Wed, Jul 05, 2017 at 03:07:01PM +0200, Romain Perier wrote: >> From: Nandor Han >> >> Avoid the situation when `dma_is_rxing` could incorrectly signal that >> DMA RX channel is receiving data in case DMA preparation or sg m

Re: [PATCH v2 1/6] serial: imx: only set DMA rx-ing when DMA starts

2017-07-05 Thread Uwe Kleine-König
Hello, On Wed, Jul 05, 2017 at 03:07:01PM +0200, Romain Perier wrote: > From: Nandor Han > > Avoid the situation when `dma_is_rxing` could incorrectly signal that > DMA RX channel is receiving data in case DMA preparation or sg mapping > fails. > > This commit fixes the issues by moving the ass

[PATCH v2 1/6] serial: imx: only set DMA rx-ing when DMA starts

2017-07-05 Thread Romain Perier
From: Nandor Han Avoid the situation when `dma_is_rxing` could incorrectly signal that DMA RX channel is receiving data in case DMA preparation or sg mapping fails. This commit fixes the issues by moving the assignment of dma_is_rxing out of imx_disable_rx_int(), then the variable is set to 1 fr