projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef8796
)
Revert "drivers: mmc: Fix minimal frequency assignment"
author
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:48:58 +0000
(22:48 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:48:58 +0000
(22:48 +0800)
This reverts commit
79fe6726738e68f19d982213cdf8b7ff438d5157
.
drivers/mmc/core/core.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index 3bc1081a464180d538c5e3b6af637fe7bf3597ef..de01a899d01f83124064a794fd6e964579bb5796 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-894,7
+894,12
@@
static void mmc_power_up(struct mmc_host *host)
*/
mmc_delay(10);
- host->ios.clock = host->f_min;
+ if (host->f_min > 400000) {
+ pr_warning("%s: Minimum clock frequency too high for "
+ "identification mode\n", mmc_hostname(host));
+ host->ios.clock = host->f_min;
+ } else
+ host->ios.clock = 400000;
host->ios.power_mode = MMC_POWER_ON;
mmc_set_ios(host);