Staging: poch: Block size bug fix
authorVijay Kumar <vijaykumar@bravegnu.org>
Wed, 29 Oct 2008 03:28:32 +0000 (08:58 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:03 +0000 (13:52 -0800)
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>
drivers/staging/poch/poch.c

index 0e113f9a1581f38a02f93b6930c330a625252137..de3f8c6fcb0a6f0d685fe0d786616d4ea9b9d9d6 100644 (file)
@@ -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);