projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd6fa7
)
mmc: core: make erase timeout calculation allow for gated clock
author
Adrian Hunter
<adrian.hunter@intel.com>
Thu, 23 Jun 2011 10:40:27 +0000
(13:40 +0300)
committer
Chris Ball
<cjb@laptop.org>
Sat, 25 Jun 2011 22:52:53 +0000
(18:52 -0400)
The erase timeout calculation may depend on clock rate
which is zero if the clock is gated, so use
mmc_host_clk_rate() which allows for that case.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index 68091dda3f31f49ab9d7130cbad178e93d5ca1c8..7843efe22359916e82bb9781d74826ad457829f6 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-1245,7
+1245,7
@@
static unsigned int mmc_mmc_erase_timeout(struct mmc_card *card,
*/
timeout_clks <<= 1;
timeout_us += (timeout_clks * 1000) /
- (
card->host->ios.clock
/ 1000);
+ (
mmc_host_clk_rate(card->host)
/ 1000);
erase_timeout = timeout_us / 1000;