mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Merge "mmc: core: Fix clk scaling when card max freq below 50MHz"
This commit is contained in:
commit
b2d7616f15
1 changed files with 6 additions and 0 deletions
|
|
@ -612,6 +612,12 @@ static int mmc_devfreq_create_freq_table(struct mmc_host *host)
|
|||
break;
|
||||
}
|
||||
|
||||
if (mmc_card_sd(host->card) && (clk_scaling->freq_table_sz < 2)) {
|
||||
clk_scaling->freq_table[clk_scaling->freq_table_sz] =
|
||||
host->card->clk_scaling_highest;
|
||||
clk_scaling->freq_table_sz++;
|
||||
}
|
||||
|
||||
out:
|
||||
/**
|
||||
* devfreq requires unsigned long type freq_table while the
|
||||
|
|
|
|||
Loading…
Reference in a new issue