Hello,
SetUp Brief:
Processor: AM3352
Linux Kernel Version: 3.2.0
We are using XDMA_EVENT_INTR2 interrupt (edma interrupt no 30) to trigger an internal DMA operation.
The XDMA_EVENT_INTR2 pin is connected to an ADC's (ADC is an SPI based) EOC(End Of Conversion) pin,
for each channel conversion complete (End Of Conversion), ADC generates an interrupt. This event triggers the DMA (Channel no 21)
which generates the clock for SPI read operation (By writing 2 bytes to TX reg of SPI), and the data is
received in RX reg. The intermidiate completion event of channel 21 is chained to edma channel 22 which
reads the SPI RX register. The DMA is used in A-B Sync with a_cnt=2, b_cnt=1, c_cnt=8, for 8 Analog-IN Channels
that are connected to ADC.
Issue:
Every time I initiliaze the DMA I see that edma channel 21 (configured with XDMA_EVENT_INTR2) is triggered with out any
external interrupt. After the first trigger (Without any interrupt), the rest of the DMA operation is triggered by
interrupt. I have confirmed by probing that external interrupt is not triggering the first DMA operation.