From: Dong Aisheng Date: Fri, 18 Oct 2013 11:48:50 +0000 (+0800) Subject: mmc: sdhci: remove unneeded call when have preset value quirk X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=372c463487c6af8275d216f4b259dda6343a33a5;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Shawn Guo Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index cbde17d97e9d..a21a71056dd0 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -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);