Date:2010-05-18 02:43:31 (10 years 4 months ago)
Author:Maarten ter Huurne
Commit:cd0f502dc7337000ba9594a50289f968c2be5536
Message:jz4740_dma: Only set no-descriptor flag when enabling the channel. Otherwise, there can be data loss using the transfer (seen with SLCD).

Files: arch/mips/jz4740/dma.c (2 diffs)

Change Details

arch/mips/jz4740/dma.c
173173    cmd |= config->mode << JZ_DMA_CMD_MODE_OFFSET;
174174    cmd |= JZ_DMA_CMD_TRANSFER_IRQ_ENABLE;
175175
176    ctrl = JZ_DMA_STATUS_CTRL_NO_DESC;
177    ctrl |= JZ_DMA_STATUS_CTRL_HALT;
176    ctrl = JZ_DMA_STATUS_CTRL_HALT;
178177
179178    jz4740_dma_write(JZ_REG_DMA_CMD(dma->id), cmd);
180179    jz4740_dma_write(JZ_REG_DMA_STATUS_CTRL(dma->id), ctrl);
...... 
219218void jz4740_dma_enable(struct jz4740_dma_chan *dma)
220219{
221220    jz4740_dma_write_mask(JZ_REG_DMA_STATUS_CTRL(dma->id),
222            JZ_DMA_STATUS_CTRL_ENABLE,
223            JZ_DMA_STATUS_CTRL_ENABLE | JZ_DMA_STATUS_CTRL_HALT);
221            JZ_DMA_STATUS_CTRL_NO_DESC | JZ_DMA_STATUS_CTRL_ENABLE,
222            JZ_DMA_STATUS_CTRL_HALT);
224223
225224    jz4740_dma_write_mask(JZ_REG_DMA_CTRL,
226225            JZ_DMA_CTRL_ENABLE,
227            JZ_DMA_CTRL_ENABLE | JZ_DMA_CTRL_HALT);
226            JZ_DMA_CTRL_HALT);
228227}
229228EXPORT_SYMBOL_GPL(jz4740_dma_enable);
230229

Archive Download the corresponding diff file



interactive