Skip to content

Commit

Permalink
mmc: sdhci: remove unneeded call when have preset value quirk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dong Aisheng authored and Chris Ball committed Oct 21, 2013
1 parent 69ed60e commit 372c463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 372c463

Please sign in to comment.