Hi,
I am using DM368 EVM, and I want to use SPI in DMA mode to transfer data. The reference program is spidev.c and davinci_spi.c in drivers/spi of DVSDK. Now the problem is when transfer is over the !cs signal can not return to high level, while the data and clock seem normal,
Add printk to the program, the function which output DMA trasfer complete signal is "davinci_spi_dma_tx_callback". One of its formal parameter is "ch_status", and its assignment is 2, which macro definition is DMA_CC_ERROR(in edma.h). the right macro definition is DMA_COMPLETE(1). Now I have 2 problems:
1. The "DMA_CC_ERROR" , it means what?
2.I can not find which function calls to "davinci_spi_dma_tx_callback" in DVSDK, also I don't kown which function assign the "ch_status", why it output DMA_CC_ERROR? And is this error lead to !cs signal can not return to high level?
Thanks a lot!