[<prev] [next>] [day] [month] [year] [list]
Message-ID: <455DB577.1000103@indt.org.br>
Date: Fri, 17 Nov 2006 09:13:27 -0400
From: Anderson Briglia <anderson.briglia@...t.org.br>
To: "Linux-omap-open-source@...ux.omap.com"
<linux-omap-open-source@...ux.omap.com>
CC: linux-kernel@...r.kernel.org,
Pierre Ossman <drzeus-list@...eus.cx>,
ext David Brownell <david-b@...bell.net>,
Russell King <rmk+lkml@....linux.org.uk>,
Tony Lindgren <tony@...mide.com>,
"Aguiar Carlos (EXT-INdT/Manaus)" <carlos.aguiar@...t.org.br>,
"Biris Ilias (EXT-INdT/Manaus)" <Ilias.Biris@...t.org.br>
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)))
View attachment "mmc_omap_dma.diff" of type "text/x-patch" (802 bytes)
Powered by blists - more mailing lists