AnsweredAssumed Answered

spi-imx dma support and transfer data issue

Question asked by Surendra Dhobale on Jan 10, 2018
Latest reply on Mar 11, 2019 by GregT


          I am trying to use the dma support for the ecspi in imx6ul. I read multiple discussion on community,saying no support for the dma. (

But when i saw the driver code in spi-imx.c, dma support related functions already exist, also in the imx6ul.dtsi file for the ecspi nodes dmas and dma-names property has set. For me it looks dma support is enable for the spi-imx.

Is it really functional ?

I am trying to use that. In the spi-imx.c ( nxp kernel 4.9.11)

when spi_imx_setupxfer() called its checking for dma ( spi_imx_can_dma()). Bydefault rxwml level is 32. I am transfering 1 or 2 bytes i.e transfter-> len = 2. and functions returns false and every time used pio mode i.e without dma.

and not transfer data to dma descriptors.

What could be the issue ? What action need to take?