Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185772
b: refs/heads/master
c: 56a5d3c
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Dan Williams committed Mar 2, 2010
1 parent 9fb7f2d commit 69d6d4b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 516fd4305e5f5718475e81fe5c17c95888a8157b
refs/heads/master: 56a5d3cf21c71963c8fc506e9b9d3f71641d9c71
10 changes: 6 additions & 4 deletions trunk/drivers/dma/coh901318_lli.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ coh901318_lli_alloc(struct coh901318_pool *pool, unsigned int len)

lli = head;
lli->phy_this = phy;
lli->link_addr = 0x00000000;
lli->virt_link_addr = 0x00000000U;

for (i = 1; i < len; i++) {
lli_prev = lli;
Expand All @@ -85,13 +87,13 @@ coh901318_lli_alloc(struct coh901318_pool *pool, unsigned int len)

DEBUGFS_POOL_COUNTER_ADD(pool, 1);
lli->phy_this = phy;
lli->link_addr = 0x00000000;
lli->virt_link_addr = 0x00000000U;

lli_prev->link_addr = phy;
lli_prev->virt_link_addr = lli;
}

lli->link_addr = 0x00000000U;

spin_unlock(&pool->lock);

return head;
Expand Down Expand Up @@ -268,10 +270,10 @@ coh901318_lli_fill_sg(struct coh901318_pool *pool,

if (dir == DMA_TO_DEVICE)
/* increment source address */
src = sg_dma_address(sg);
src = sg_phys(sg);
else
/* increment destination address */
dst = sg_dma_address(sg);
dst = sg_phys(sg);

bytes_to_transfer = sg_dma_len(sg);

Expand Down

0 comments on commit 69d6d4b

Please sign in to comment.