AnsweredAssumed Answered

VF61 Linux SPI DMA support

Question asked by Oleg Petrakivskyi on Apr 6, 2016

spi-fsl-dspi driver does not supports DMA. I made some driver modification for DMA support.

After code test I got next result. DMA transmit is ok. DMA receives about 50% of lost packets (some parts of buffer contents previous message). The issue is in DMA. Not all data are copied from device fifo into memory. RXCTR = 0 in rx callback transaction indicates that data is read. SPIx_RXFRn register shows a new correct value. Do you have idea about reason of bad DMA transfers? Draft code is attached.

Original Attachment has been moved to: spi-fsl-dspi.c.zip

Outcomes