Skip to content

Commit ff5ae12

Browse files
committed
Revert "blackfin: dma: current count mmr is read only"
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>
1 parent bc4fef6 commit ff5ae12

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • arch/blackfin/include/asm

‎arch/blackfin/include/asm/dma.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ static inline void disable_dma(unsigned int channel)
316316
}
317317
static inline void enable_dma(unsigned int channel)
318318
{
319+
dma_ch[channel].regs->curr_x_count = 0;
320+
dma_ch[channel].regs->curr_y_count = 0;
319321
dma_ch[channel].regs->cfg |= DMAEN;
320322
}
321323
int set_dma_callback(unsigned int channel, irq_handler_t callback, void *data);

0 commit comments

Comments
 (0)