diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 20:42:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 20:42:33 +0000 |
commit | 2d5f80251c73e1e44c8fdd047ef49dbe051d65aa (patch) | |
tree | 74597f2d6eef2e7a6d6338c978b8910f9f947151 /target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch | |
parent | 157a4ab64660aaca2dd51fa4f82239d3738a1dff (diff) | |
download | upstream-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.tar.gz upstream-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.tar.bz2 upstream-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.zip |
add the 'goldfish' target, useful for experimenting with virtual phone hardware (includes the emulator)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch')
-rw-r--r-- | target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch b/target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch new file mode 100644 index 0000000000..4e525b6176 --- /dev/null +++ b/target/linux/goldfish/patches-2.6.30/0098-mmc-sd-When-resuming-try-a-little-harder-to-init.patch @@ -0,0 +1,44 @@ +From bd8df907ee8e95143d1bb7ec01ee0e4b6f7e1b79 Mon Sep 17 00:00:00 2001 +From: San Mehat <san@android.com> +Date: Mon, 1 Dec 2008 08:52:34 -0800 +Subject: [PATCH 098/134] mmc: sd: When resuming, try a little harder to init the card + +Signed-off-by: San Mehat <san@android.com> +--- + drivers/mmc/core/sd.c | 19 +++++++++++++++++++ + 1 files changed, 19 insertions(+), 0 deletions(-) + +--- a/drivers/mmc/core/sd.c ++++ b/drivers/mmc/core/sd.c +@@ -607,12 +607,31 @@ static void mmc_sd_suspend(struct mmc_ho + static void mmc_sd_resume(struct mmc_host *host) + { + int err; ++#ifdef CONFIG_MMC_PARANOID_SD_INIT ++ int retries; ++#endif + + BUG_ON(!host); + BUG_ON(!host->card); + + mmc_claim_host(host); ++#ifdef CONFIG_MMC_PARANOID_SD_INIT ++ retries = 5; ++ while (retries) { ++ err = mmc_sd_init_card(host, host->ocr, host->card); ++ ++ if (err) { ++ printk(KERN_ERR "%s: Re-init card rc = %d (retries = %d)\n", ++ mmc_hostname(host), err, retries); ++ mdelay(5); ++ retries--; ++ continue; ++ } ++ break; ++ } ++#else + err = mmc_sd_init_card(host, host->ocr, host->card); ++#endif + mmc_release_host(host); + + if (err) { |