Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232318
b: refs/heads/master
c: 4fb699b
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Hunter authored and Tony Lindgren committed Jan 19, 2011
1 parent 2bc0e4d commit e344b9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35a78fa48678926464138aab3a4dede4503befb5
refs/heads/master: 4fb699b408b559107f1e1b47d176d33361446b69
7 changes: 3 additions & 4 deletions trunk/arch/arm/plat-omap/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum { DMA_CHAIN_STARTED, DMA_CHAIN_NOTSTARTED };
#endif

#define OMAP_DMA_ACTIVE 0x01
#define OMAP2_DMA_CSR_CLEAR_MASK 0xffe
#define OMAP2_DMA_CSR_CLEAR_MASK 0xffffffff

#define OMAP_FUNC_MUX_ARM_BASE (0xfffe1000 + 0xec)

Expand Down Expand Up @@ -1873,7 +1873,7 @@ static int omap2_dma_handle_ch(int ch)
printk(KERN_INFO "DMA misaligned error with device %d\n",
dma_chan[ch].dev_id);

p->dma_write(OMAP2_DMA_CSR_CLEAR_MASK, CSR, ch);
p->dma_write(status, CSR, ch);
p->dma_write(1 << ch, IRQSTATUS_L0, ch);
/* read back the register to flush the write */
p->dma_read(IRQSTATUS_L0, ch);
Expand All @@ -1893,10 +1893,9 @@ static int omap2_dma_handle_ch(int ch)
OMAP_DMA_CHAIN_INCQHEAD(chain_id);

status = p->dma_read(CSR, ch);
p->dma_write(status, CSR, ch);
}

p->dma_write(status, CSR, ch);

if (likely(dma_chan[ch].callback != NULL))
dma_chan[ch].callback(ch, status, dma_chan[ch].data);

Expand Down

0 comments on commit e344b9e

Please sign in to comment.