#6532 BLOC Update1: SD Card Corruption
Zarro Boogs per Child
bugtracker at laptop.org
Thu Jun 19 10:51:44 EDT 2008
#6532: SD Card Corruption
----------------------+-----------------------------------------------------
Reporter: haralds | Owner: dsaxena
Type: defect | Status: assigned
Priority: blocker | Milestone: Update1.1 (8.1.1)
Component: kernel | Version:
Resolution: | Keywords: release?
Verified: 0 | Blocking: 6893
Blockedby: |
----------------------+-----------------------------------------------------
Comment(by dsaxena):
Replying to [comment:38 Rmyers]:
> Great to see progress on this. A couple of questions: Is adding the
timeout considered to be a final fix, or is an underlying cause going to
be addressed? Is adding the timeout something that can be applied as a
patch to test?
>
The final solution may end up being a timeout of a different value but I
am digging into the
code a bit more to see if there is another option. Even with a timeout,
the current patch (follows) is a hack and the timeout needs to be handled
via a quirk of some sort in the code path.
{{{
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 918477c..fc01f97 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -527,6 +527,8 @@ static void mmc_sd_resume(struct mmc_host *host)
mmc_claim_host(host);
+ msleep(500);
+
err = mmc_sd_init_card(host, host->ocr, host->card);
if (err != MMC_ERR_NONE) {
mmc_remove_card(host->card);
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/6532#comment:39>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list