[patch 2/5] MMC OMAP driver
- From: Anderson Briglia <anderson.briglia@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 09:35:38 -0400
ATP and Transcend cards failing repeatedly in the card select command
(CMD7) due to illegal instruction after CMD2. Doing an extra status inquiry
when leaving the card identification mode seems to fix this problem.
The attached patch does the extra probing in mmc_setup() during
low clock which is perhaps an overkill. One could do it also in
mmc_rescan() after switching back to higher clock.
Signed-off-by: Jarkko Lavinen <jarkko.lavinen@xxxxxxxxx>
Index: linux-2.6.15-mmc_omap/drivers/mmc/mmc.c
===================================================================
--- linux-2.6.15-mmc_omap.orig/drivers/mmc/mmc.c 2006-01-30 10:29:29.000000000 -0400
+++ linux-2.6.15-mmc_omap/drivers/mmc/mmc.c 2006-01-30 10:29:31.000000000 -0400
@@ -1087,6 +1087,14 @@ static void mmc_setup(struct mmc_host *h
*/
host->ios.bus_mode = MMC_BUSMODE_PUSHPULL;
host->ops->set_ios(host, &host->ios);
+
+ /*
+ * Some already detected cards get confused in the card identification
+ * mode and futher commands can fail. Doing an extra status inquiry
+ * after the identification mode seems to get cards back to their
+ * senses.
+ */
+ mmc_check_cards(host);
mmc_read_csds(host);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: Re: [CVE-2005-4639] Re: [PATCH 2.6.14] dvb: dst: Fix possible buffer overflow
- Next by Date: [patch 3/5] MMC OMAP driver
- Previous by thread: [patch 0/5] MMC OMAP driver
- Next by thread: [patch 3/5] MMC OMAP driver
- Index(es):
Relevant Pages
- Re: New ROm by Nov 24
... this could also be why you are having power drains as well. ... >> Another
issue I've seen is that the touch screen alignment is flaky. ... Leaving both cards
in drains it twice as fast as one. ... Leaving a CF card in the unit may cause it to disappear
when the ... (microsoft.public.pocketpc) - Re: New ROm by Nov 24
... often but I never saw the issue until one time I was upgrading it and ... >
I've seen the battery drain issue with my Axim x50v many many times.. ... Leaving an SD
or CF card in the unit drains the battery, ... Leaving both cards in drains it twice
as fast as one. ... (microsoft.public.pocketpc) - Re: Fraud Alert!
... In case of plice inquiry you can be traced ... It's metroCard for the NYC
transit system. ... You buy the card with a credit card. ... (sci.astro.amateur) - Re: New ROm by Nov 24
... 'grumble grumble piss & moan' ... Leaving an SD or CF card in the unit
drains the battery, ... Leaving both cards in drains it twice as fast as one. ...
Frequent error messages regarding GWES.EXE, ... (microsoft.public.pocketpc) - New ROm by Nov 24
... Original post by captpackrat ... Leaving both cards in drains it twice
as fast as one. ... Leaving a CF card in the unit may cause it to disappear when the unit
is ... Frequent error messages regarding GWES.EXE, ... (microsoft.public.pocketpc)