Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-20 Thread Anton Bondarenko
On 08.10.2015 11:19, Robin Gong wrote: On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, { struct spi_imx_data *spi_imx = spi_master_get_devdata(master); - if

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-20 Thread Anton Bondarenko
On 08.10.2015 11:19, Robin Gong wrote: On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, { struct spi_imx_data *spi_imx = spi_master_get_devdata(master); - if

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: > >> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, > >> struct spi_device *spi, > >> { > >>struct spi_imx_data *spi_imx = spi_master_get_devdata(master); > >> > >> - if (spi_imx->dma_is_inited

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: > >> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, > >> struct spi_device *spi, > >> { > >>struct spi_imx_data *spi_imx = spi_master_get_devdata(master); > >> > >> - if (spi_imx->dma_is_inited

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Bondarenko, Anton
>> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, >> struct spi_device *spi, >> { >> struct spi_imx_data *spi_imx = spi_master_get_devdata(master); >> >> -if (spi_imx->dma_is_inited >> -&& transfer->len > spi_imx->rx_wml * sizeof(u32) >> -&&

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:08PM +0200, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incorrectly. SPI transfer

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:08PM +0200, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incorrectly. SPI transfer

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Bondarenko, Anton
>> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, >> struct spi_device *spi, >> { >> struct spi_imx_data *spi_imx = spi_master_get_devdata(master); >> >> -if (spi_imx->dma_is_inited >> -&& transfer->len > spi_imx->rx_wml * sizeof(u32) >> -&&

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-27 Thread kbuild test robot
Hi Anton, [auto build test results on v4.3-rc2 -- if it's inappropriate base, please ignore] config: arm-arm5 (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-27 Thread kbuild test robot
Hi Anton, [auto build test results on v4.3-rc2 -- if it's inappropriate base, please ignore] config: arm-arm5 (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

[PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-25 Thread Anton Bondarenko
RX DMA tail data handling doesn't work correctly in many cases with current implementation. It happens because SPI core was setup to generates both RX watermark level and RX DATA TAIL events incorrectly. SPI transfer triggering for DMA also done in wrong way. SPI client wants to transfer 70 words

[PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-25 Thread Anton Bondarenko
RX DMA tail data handling doesn't work correctly in many cases with current implementation. It happens because SPI core was setup to generates both RX watermark level and RX DATA TAIL events incorrectly. SPI transfer triggering for DMA also done in wrong way. SPI client wants to transfer 70 words