public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* mmci-omap regressions
@ 2009-01-12  9:17 Ladislav Michl
  2009-01-12 10:42 ` Tony Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ladislav Michl @ 2009-01-12  9:17 UTC (permalink / raw)
  To: linux-omap

Last time I used MMC card with linux-2.6.15-omap2 and it worked pretty well on
my custom 5910 based board. Current git nor linux-2.6.22-omap1 (currently used
for production) doesn't work at all. Inspecting diff between 2.6.15-omap2 and
2.6.22-omap1 showed that
--- a/drivers/mmc/host/omap.c	2009-01-12 09:32:23.000000000 +0100
+++ b/drivers/mmc/host/omap.c	2009-01-12 09:46:26.000000000 +0100
@@ -974,7 +974,7 @@
 	 * Writing to the CON register twice seems to do the trick. */
 	for (i = 0; i < 2; i++)
 		OMAP_MMC_WRITE(host, CON, dsor);
-	if (ios->power_mode == MMC_POWER_ON) {
+	if (ios->power_mode == MMC_POWER_UP) {
 		/* Send clock cycles, poll completion */
 		OMAP_MMC_WRITE(host, IE, 0);
 		OMAP_MMC_WRITE(host, STAT, 0xffff);
did the trick.

With above patch applied to 2.6.22-omap1 I got
# modprobe omap
mmci-omap mmci-omap.1: command timeout, CMD 8
 mmcblk0: mmc0:0001        127104KiB
 mmcblk0: p1
while there is no command timeout with 2.6.15-omap2, but at least it works.

Doing the same modification in current git doesn't help. Moreover removing
omap.ko and inserting again behaves differently than inserting for first
time:
# modprobe omap
mmci-omap mmci-omap.0: command timeout (CMD8)
mmci-omap mmci-omap.0: command timeout (CMD5)
mmci-omap mmci-omap.0: command timeout (CMD5)
mmci-omap mmci-omap.0: command timeout (CMD5)
mmci-omap mmci-omap.0: command timeout (CMD5)
mmci-omap mmci-omap.0: command timeout (CMD55)
mmci-omap mmci-omap.0: command timeout (CMD55)
mmci-omap mmci-omap.0: command timeout (CMD55)
mmci-omap mmci-omap.0: command timeout (CMD55)
mmc0: error -22 whilst initialising MMC card
# rmmod omap
# modprobe omap
mmci-omap: probe of mmci-omap.0 failed with error -16

I'll happily send any requested debug informations and test any patches

Thank you,
	ladis

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

end of thread, other threads:[~2009-10-22 22:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12  9:17 mmci-omap regressions Ladislav Michl
2009-01-12 10:42 ` Tony Lindgren
2009-01-12 11:35   ` Ladislav Michl
2009-10-21 21:15   ` Ladislav.Michl
2009-10-22 22:01     ` Tony Lindgren
2009-01-20  1:10 ` Måns Rullgård
2009-01-20  9:36 ` andrzej zaborowski

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