lkml.org 
[lkml]   [2006]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[patch 6/6] [RFC] Add MMC Password Protection (lock/unlock) support V6
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)))
\
 
 \ /
  Last update: 2006-11-17 14:41    [W:0.019 / U:5.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site