Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148579
b: refs/heads/master
c: ea8538a
h: refs/heads/master
i:
  148577: 36834b8
  148575: 9b2e52e
v: v3
  • Loading branch information
Sonic Zhang authored and Mike Frysinger committed Jun 12, 2009
1 parent 61eea91 commit 6841100
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 9b9bfded623cffb4259b95e5419404015dba361f
refs/heads/master: ea8538a039607cd959d28ed10086484e051ce7db
8 changes: 7 additions & 1 deletion trunk/arch/blackfin/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,16 @@ static inline unsigned long get_dma_curr_addr(unsigned int channel)

static inline void set_dma_sg(unsigned int channel, struct dmasg *sg, int ndsize)
{
/* Make sure the internal data buffers in the core are drained
* so that the DMA descriptors are completely written when the
* DMA engine goes to fetch them below.
*/
SSYNC();

dma_ch[channel].regs->next_desc_ptr = sg;
dma_ch[channel].regs->cfg =
(dma_ch[channel].regs->cfg & ~(0xf << 8)) |
((ndsize & 0xf) << 8);
dma_ch[channel].regs->next_desc_ptr = sg;
}

static inline int dma_channel_active(unsigned int channel)
Expand Down

0 comments on commit 6841100

Please sign in to comment.