public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Anderson Briglia <anderson.briglia@indt.org.br>
To: "Linux-omap-open-source@linux.omap.com"
	<linux-omap-open-source@linux.omap.com>
Cc: linux-kernel@vger.kernel.org,
	Pierre Ossman <drzeus-list@drzeus.cx>,
	ext David Brownell <david-b@pacbell.net>,
	Russell King <rmk+lkml@arm.linux.org.uk>,
	Tony Lindgren <tony@atomide.com>,
	"Aguiar Carlos (EXT-INdT/Manaus)" <carlos.aguiar@indt.org.br>,
	"Biris Ilias (EXT-INdT/Manaus)" <Ilias.Biris@indt.org.br>
Subject: [patch 4/6] [RFC] Add MMC Password Protection (lock/unlock) support V6
Date: Fri, 17 Nov 2006 09:11:40 -0400	[thread overview]
Message-ID: <455DB50C.3020209@indt.org.br> (raw)

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

OMAP platform specific patch.
- Add the host MMC lock/unlock capability support.

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar <at> indt.org.br>
Signed-off-by: Anderson Lizardo <anderson.lizardo <at> indt.org.br>
Signed-off-by: Anderson Briglia <anderson.briglia <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-16 15:35:19.000000000 -0400
+++ linux-omap-2.6.git/drivers/mmc/omap.c	2006-11-17 09:05:47.000000000 -0400
@@ -1094,6 +1094,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;
+
  	/* Use scatterlist DMA to reduce per-transfer costs.
  	 * NOTE max_seg_size assumption that small blocks aren't
  	 * normally used (except e.g. for reading SD registers).


[-- Attachment #2: mmc_omap_cap.diff --]
[-- Type: text/x-patch, Size: 942 bytes --]

OMAP platform specific patch.
- Add the host MMC lock/unlock capability support.

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar <at> indt.org.br>
Signed-off-by: Anderson Lizardo <anderson.lizardo <at> indt.org.br>
Signed-off-by: Anderson Briglia <anderson.briglia <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-16 15:35:19.000000000 -0400
+++ linux-omap-2.6.git/drivers/mmc/omap.c	2006-11-17 09:05:47.000000000 -0400
@@ -1094,6 +1094,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;
+
 	/* Use scatterlist DMA to reduce per-transfer costs.
 	 * NOTE max_seg_size assumption that small blocks aren't
 	 * normally used (except e.g. for reading SD registers).

             reply	other threads:[~2006-11-17 13:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17 13:11 Anderson Briglia [this message]
2006-11-17 16:10 ` [patch 4/6] [RFC] Add MMC Password Protection (lock/unlock) support V6 Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455DB50C.3020209@indt.org.br \
    --to=anderson.briglia@indt.org.br \
    --cc=Ilias.Biris@indt.org.br \
    --cc=carlos.aguiar@indt.org.br \
    --cc=david-b@pacbell.net \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=rmk+lkml@arm.linux.org.uk \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox