public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MMC: Select only one voltage bit in OCR response
@ 2006-10-09 15:00 Timo Teras
  2006-10-09 16:53 ` Russell King
  0 siblings, 1 reply; 9+ messages in thread
From: Timo Teras @ 2006-10-09 15:00 UTC (permalink / raw)
  To: drzeus-list, rmk+mmc; +Cc: linux-kernel

The card might go to inactive state (according to specification), if
there are unsupported bits set in the OCR.

Signed-off-by: Timo Teras <timo.teras@solidboot.com>

---

 drivers/mmc/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

8208e380f51ca772e84a0b83098d24aacfa3cc2b
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index acc5365..61bf3fc 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc
 	if (bit) {
 		bit -= 1;
 
-		ocr = 3 << bit;
+		ocr = 1 << bit;
 
 		host->ios.vdd = bit;
 		mmc_set_ios(host);
-- 
1.2.3.g90cc1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-11-02 18:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 15:00 [PATCH] MMC: Select only one voltage bit in OCR response Timo Teras
2006-10-09 16:53 ` Russell King
2006-10-09 17:23   ` Timo Teras
2006-10-16  6:34     ` Pierre Ossman
2006-10-22  9:25       ` Pierre Ossman
2006-10-31 10:05       ` Russell King
2006-10-31 15:24         ` Juha Yrjola
2006-11-02 18:37           ` Pierre Ossman
2006-10-10 13:23   ` [PATCH] MMC: Do not set unsupported bits " Timo Teras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox