mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 00:12:36 -05:00
MMC core: limit minimum initialization frequency to 400kHz
Some controllers allow a much lower frequency than 400kHz. Keep the minimum frequency within sensible limits. Signed-off-by: Sascha Hauer <[email protected]>
This commit is contained in:
parent
ae628903ab
commit
8dfd0374be
1 changed files with 7 additions and 1 deletions
|
|
@ -708,7 +708,13 @@ 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue