2006-01-31 20:26:23

by Carlos Aguiar

[permalink] [raw]
Subject: [patch 6/6] Add MMC password protection (lock/unlock) support V4

Patch to add the host MMC lock/unlock capability support for OMAP platform.

Signed-off-by: Anderson Briglia <[email protected]>
Signed-off-by: Anderson Lizardo <[email protected]>
Signed-off-by: Carlos Eduardo Aguiar <[email protected]>

Index: linux-omap-2.6.git/drivers/mmc/omap.c
===================================================================
--- linux-omap-2.6.git.orig/drivers/mmc/omap.c 2006-01-31 15:22:33.000000000 -0400
+++ linux-omap-2.6.git/drivers/mmc/omap.c 2006-01-31 15:22:36.000000000 -0400
@@ -1235,6 +1235,9 @@ static int __init mmc_omap_probe(struct

if (minfo->wire4)
mmc->caps |= MMC_CAP_4_BIT_DATA;
+
+ /* Sets the lock/unlock capability */
+ host->mmc->caps |= MMC_CAP_LOCK_UNLOCK;

mmc->ops = &mmc_omap_ops;
mmc->f_min = 400000;

--