OMAP platform specific patch.
- Adjust the frame count for DMA transfers.
Signed-off-by: Anderson Briglia <anderson.briglia <at> indt.org.br>
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar <at> indt.org.br>
Index: linux-omap-2.6.git/drivers/mmc/omap.c
===================================================================
--- linux-omap-2.6.git.orig/drivers/mmc/omap.c 2006-11-17 09:05:47.000000000 -0400
+++ linux-omap-2.6.git/drivers/mmc/omap.c 2006-11-17 09:08:30.000000000 -0400
@@ -628,6 +628,10 @@ mmc_omap_prepare_dma(struct mmc_omap_hos
data_addr = host->phys_base + OMAP_MMC_REG_DATA;
frame = data->blksz;
+
+ /* MMC LOCK/UNLOCK: Do frame size multiple of 16bits (2bytes) */
+ frame += frame&0x1;
+
count = sg_dma_len(sg);
if ((data->blocks == 1) && (count > (data->blksz)))
OMAP platform specific patch.
- Adjust the frame count for DMA transfers.
Signed-off-by: Anderson Briglia <anderson.briglia <at> indt.org.br>
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar <at> indt.org.br>
Index: linux-omap-2.6.git/drivers/mmc/omap.c
===================================================================
--- linux-omap-2.6.git.orig/drivers/mmc/omap.c 2006-11-17 09:05:47.000000000 -0400
+++ linux-omap-2.6.git/drivers/mmc/omap.c 2006-11-17 09:08:30.000000000 -0400
@@ -628,6 +628,10 @@ mmc_omap_prepare_dma(struct mmc_omap_hos
data_addr = host->phys_base + OMAP_MMC_REG_DATA;
frame = data->blksz;
+
+ /* MMC LOCK/UNLOCK: Do frame size multiple of 16bits (2bytes) */
+ frame += frame&0x1;
+
count = sg_dma_len(sg);
if ((data->blocks == 1) && (count > (data->blksz)))
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]