* Resetting host->power_mode to its original value
@ 2010-08-13 21:02 Mathieu Poirier
0 siblings, 0 replies; only message in thread
From: Mathieu Poirier @ 2010-08-13 21:02 UTC (permalink / raw)
To: linux-omap
Good morning,
The config file found at
"http://people.canonical.com/~mpoirier/config.mmc_failure"
was generated by doing a "make omap3_beagle_defconfig" from 2.6.35-rc6,
followed by a "make menuconfig" where the following flags were enabled:
CONFIG_PREEMPT_VOLUNTARY
CONFIG_CPU_IDLE
CONFIG_SOUND
CONFIG_SND
CONFIG_SND_SOC
When all 5 flags are set the following error message appears on the
console, preventing one from booting a system from SDHC card:
"mmc0: error -110 whilst initialising SD card"
The problem was introduced by patch:
6da20c89af64b75302399369a90b9d50c1a87665
The first part of the patch is fine. The problem is caused by the
initialization of the 'power_mode' variable in the second portion of the
patch:
host->power_mode = MMC_POWER_OFF;
Reverting this statement to it's original form:
host->power_mode = -1; is enough to cure the problem.
I noticed that in file "drivers/mmc/host/omap_hsmmc.c",
'host->power_mode' is used fairly often in the functions related to
power management. Note that some cards don't exhibit the problem but
with the ones that do, the failure is consistent and reproducible at
will.
I will dive in the code to understand exactly what is going on and
hopefully find a solution to the problem. At this time, I suggest the
following patch:
"http://people.canonical.com/~mpoirier/0001-Resetting-host-power_mode-to-its-orininal-value.patch"
Since this area is completely foreign to me, help from anyone would be
greatly appreciated. You can find me on freenode (mpoirier) under
#ubuntu-arm, #ubuntu-kernel and #beagle.
You can also find a reference to this bug in launchpad:
https://bugs.launchpad.net/bugs/591941
I run a beagle board C4, fitted with an OMAP3 3530. Once again, my
kernel is a vanilla upstream 2.6.35-rc6. The problem has also been
observed on revision C2, C3 and XM.
Best regards, Mathieu.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-13 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13 21:02 Resetting host->power_mode to its original value Mathieu Poirier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).