From 4ad57fcb3b0ef28e2acf235d7e3e742cea95fe6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sat, 30 Jul 2011 22:48:58 +0800 Subject: [PATCH] Revert "drivers: mmc: Fix minimal frequency assignment" This reverts commit 79fe6726738e68f19d982213cdf8b7ff438d5157. --- drivers/mmc/core/core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 3bc1081a4641..de01a899d01f 100644 --- 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); -- 2.34.1