Revert "blackfin: dma: current count mmr is read only"
authorSteven Miao <realmz6@gmail.com>
Tue, 13 May 2014 08:49:13 +0000 (16:49 +0800)
committerSteven Miao <realmz6@gmail.com>
Tue, 10 Jun 2014 16:13:22 +0000 (00:13 +0800)
curr_x_count/curr_y_count need to be cleared here, keep this workaround

This reverts commit dfb02f95f5430e47d0c49adbc4469d08eea38b94.

Signed-off-by: Steven Miao <realmz6@gmail.com>
arch/blackfin/include/asm/dma.h

index 8d1e4c2d2c36d4f2944c8e7ea4d40050da4b530a..40e9c2bbc6e37f26ef8030316556a16c05c0d776 100644 (file)
@@ -316,6 +316,8 @@ static inline void disable_dma(unsigned int channel)
 }
 static inline void enable_dma(unsigned int channel)
 {
+       dma_ch[channel].regs->curr_x_count = 0;
+       dma_ch[channel].regs->curr_y_count = 0;
        dma_ch[channel].regs->cfg |= DMAEN;
 }
 int set_dma_callback(unsigned int channel, irq_handler_t callback, void *data);