提交 95ead520 编写于 作者: V Vijay Kumar 提交者: Greg Kroah-Hartman

Staging: poch: Block size bug fix

Block size is to be expressed in no. of 64 bit transfers. But the code
specifies the block size in bytes. Fix this issue.
Signed-off-by: NVijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0d1d1424
...@@ -432,7 +432,10 @@ static void channel_dma_init(struct channel_info *channel) ...@@ -432,7 +432,10 @@ static void channel_dma_init(struct channel_info *channel)
} }
printk(KERN_WARNING "block_size, group_size, group_count\n"); printk(KERN_WARNING "block_size, group_size, group_count\n");
iowrite32(channel->block_size, fpga + block_size_reg); /*
* Block size is represented in no. of 64 bit transfers.
*/
iowrite32(channel->block_size / 8, fpga + block_size_reg);
iowrite32(channel->group_size / channel->block_size, iowrite32(channel->group_size / channel->block_size,
fpga + block_count_reg); fpga + block_count_reg);
iowrite32(channel->group_count, fpga + group_count_reg); iowrite32(channel->group_count, fpga + group_count_reg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册