Skip to content

Commit

Permalink
Staging: poch: Block size bug fix
Browse files Browse the repository at this point in the history
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: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Vijay Kumar authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 0d1d142 commit 95ead52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/staging/poch/poch.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ static void channel_dma_init(struct channel_info *channel)
}

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,
fpga + block_count_reg);
iowrite32(channel->group_count, fpga + group_count_reg);
Expand Down

0 comments on commit 95ead52

Please sign in to comment.