mmc: sdhci: remove unneeded call when have preset value quirk
Remove unneeded call of call sdhci_enable_preset_value when having SDHCI_QUIRK2_PRESET_VALUE_BROKEN. Signed-off-by: Dong Aisheng <b29396@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
69ed60e07b
commit
372c463487
|
@ -1435,7 +1435,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
|
|||
}
|
||||
|
||||
if (host->version >= SDHCI_SPEC_300 &&
|
||||
(ios->power_mode == MMC_POWER_UP))
|
||||
(ios->power_mode == MMC_POWER_UP) &&
|
||||
!(host->quirks2 & SDHCI_QUIRK2_PRESET_VALUE_BROKEN))
|
||||
sdhci_enable_preset_value(host, false);
|
||||
|
||||
sdhci_set_clock(host, ios->clock);
|
||||
|
|
Loading…
Reference in New Issue