Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126636
b: refs/heads/master
c: 1b8ee91
h: refs/heads/master
v: v3
  • Loading branch information
Vijay Kumar authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 3c2666c commit 40b8970
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: bf437012503cc99519e20b4a8bddf830cdaae794
refs/heads/master: 1b8ee916f5e5f0de1367a5a437ba504a96953836
7 changes: 5 additions & 2 deletions trunk/drivers/staging/poch/poch.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,27 +485,30 @@ static void channel_dma_init(struct channel_info *channel)
/* The DMA address page register is shared between the RX and
* TX channels, so acquire lock.
*/
spin_lock(channel->iomem_lock);
for (i = 0; i < channel->group_count; i++) {
page = i / 32;
group_in_page = i % 32;

group_reg = group_regs_base + (group_in_page * 4);

spin_lock(channel->iomem_lock);
iowrite32(page, fpga + FPGA_DMA_ADR_PAGE_REG);
iowrite32(channel->groups[i].dma_addr, fpga + group_reg);
spin_unlock(channel->iomem_lock);
}

for (i = 0; i < channel->group_count; i++) {
page = i / 32;
group_in_page = i % 32;

group_reg = group_regs_base + (group_in_page * 4);

spin_lock(channel->iomem_lock);
iowrite32(page, fpga + FPGA_DMA_ADR_PAGE_REG);
printk(KERN_INFO PFX "%ld: read dma_addr: 0x%x\n", i,
ioread32(fpga + group_reg));
spin_unlock(channel->iomem_lock);
}
spin_unlock(channel->iomem_lock);

}

Expand Down

0 comments on commit 40b8970

Please sign in to comment.