mtd: pxa3xx_nand: Fix PIO data transfer

The shift operator used here to convert from bytes to 32-bit words is
backwards.

Signed-off-by: David Hunter <hunterd42@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
David Hunter 2009-11-23 21:02:35 -08:00 committed by David Woodhouse
parent 6b0d9a8412
commit 98ecc914d0

View File

@ -489,7 +489,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info)
switch (info->state) { switch (info->state) {
case STATE_PIO_WRITING: case STATE_PIO_WRITING:
__raw_writesl(info->mmio_base + NDDB, info->data_buff, __raw_writesl(info->mmio_base + NDDB, info->data_buff,
info->data_size << 2); info->data_size >> 2);
enable_int(info, NDSR_CS0_BBD | NDSR_CS0_CMDD); enable_int(info, NDSR_CS0_BBD | NDSR_CS0_CMDD);
@ -501,7 +501,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info)
break; break;
case STATE_PIO_READING: case STATE_PIO_READING:
__raw_readsl(info->mmio_base + NDDB, info->data_buff, __raw_readsl(info->mmio_base + NDDB, info->data_buff,
info->data_size << 2); info->data_size >> 2);
break; break;
default: default:
printk(KERN_ERR "%s: invalid state %d\n", __func__, printk(KERN_ERR "%s: invalid state %d\n", __func__,