Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197518
b: refs/heads/master
c: 0f65169
h: refs/heads/master
v: v3
  • Loading branch information
Richard Röjfors authored and Dan Williams committed Mar 26, 2010
1 parent 16c6271 commit 8f6edd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: de5d4453c5b224eefd02b6a141ed411a76d458af
refs/heads/master: 0f65169b1bf44220308e1ce1f6666ad03ddc27af
7 changes: 5 additions & 2 deletions trunk/drivers/dma/timb_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ struct timb_dma_desc {
struct timb_dma_chan {
struct dma_chan chan;
void __iomem *membase;
spinlock_t lock; /* Used for mutual exclusion */
spinlock_t lock; /* Used to protect data structures,
especially the lists and descriptors,
from races between the tasklet and calls
from above */
dma_cookie_t last_completed_cookie;
bool ongoing;
struct list_head active_list;
Expand Down Expand Up @@ -197,7 +200,7 @@ static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc,
}

dev_dbg(chan2dev(&td_chan->chan), "desc: %p, addr: %p\n",
dma_desc, (void *)(int)sg_dma_address(sg));
dma_desc, (void *)sg_dma_address(sg));

dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff;
dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff;
Expand Down

0 comments on commit 8f6edd9

Please sign in to comment.