diff mbox

[3/6] davinci: edma: clear events in edma_start()

Message ID 4BFBA100.4020805@windriver.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

stanley.miao May 25, 2010, 10:05 a.m. UTC
None
diff mbox

Patch

--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -359,8 +359,10 @@  static void davinci_spi_dma_rx_callback(unsigned 
lch, u16 ch_status, void *data)
 
        if (ch_status == DMA_COMPLETE)
                edma_stop(davinci_spi_dma->dma_rx_channel);
-       else
+       else {
+               edma_stop(davinci_spi_dma->dma_rx_channel);
                edma_clean_channel(davinci_spi_dma->dma_rx_channel);
+       }
 
        complete(&davinci_spi_dma->dma_rx_completion);