* [patch 6/6] [RFC] Add MMC Password Protection (lock/unlock) support V6
@ 2006-11-17 13:13 Anderson Briglia
0 siblings, 0 replies; only message in thread
From: Anderson Briglia @ 2006-11-17 13:13 UTC (permalink / raw)
To: Linux-omap-open-source@linux.omap.com
Cc: linux-kernel, Pierre Ossman, ext David Brownell, Russell King,
Tony Lindgren, Aguiar Carlos (EXT-INdT/Manaus),
Biris Ilias (EXT-INdT/Manaus)
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
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)))
[-- Attachment #2: mmc_omap_dma.diff --]
[-- Type: text/x-patch, Size: 801 bytes --]
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)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-17 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17 13:13 [patch 6/6] [RFC] Add MMC Password Protection (lock/unlock) support V6 Anderson Briglia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).