diff options
author | Vijay Kumar <vijaykumar@bravegnu.org> | 2008-10-29 08:58:32 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:52:03 -0800 |
commit | 95ead520a3d77b1a654ce95ada9639acd7e91619 (patch) | |
tree | 28164353725db3deed437f6ad793ad4033f8c875 /drivers/staging/poch | |
parent | 0d1d1424330cc1934f2b2742f0cfa2c31e6a250b (diff) | |
download | linux-stable-95ead520a3d77b1a654ce95ada9639acd7e91619.tar.gz linux-stable-95ead520a3d77b1a654ce95ada9639acd7e91619.tar.bz2 linux-stable-95ead520a3d77b1a654ce95ada9639acd7e91619.zip |
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: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/poch')
-rw-r--r-- | drivers/staging/poch/poch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/poch/poch.c b/drivers/staging/poch/poch.c index 0e113f9a1581..de3f8c6fcb0a 100644 --- a/drivers/staging/poch/poch.c +++ b/drivers/staging/poch/poch.c @@ -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); |