Skip to content

Commit 61183d8

Browse files
mmc: host: Wait for Vdd to settle on card power off
The SD spec version 6.0 section 6.4.1.5 requires that Vdd must be lowered to less than 0.5V for a minimum of 1 ms when powering off a card. Increase our wait to 15 ms so that voltage has time to drain down to 0.5V and cards can power off correctly. Signed-off-by: Erick Shepherd <[email protected]>
1 parent 87e2892 commit 61183d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mmc/host/sdhci.c

+3
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,9 @@ EXPORT_SYMBOL_GPL(sdhci_set_power_noreg);
21472147
void sdhci_set_power(struct sdhci_host *host, unsigned char mode,
21482148
unsigned short vdd)
21492149
{
2150+
if (mode == MMC_POWER_OFF)
2151+
usleep_range(15000, 17500);
2152+
21502153
if (IS_ERR(host->mmc->supply.vmmc))
21512154
sdhci_set_power_noreg(host, mode, vdd);
21522155
else

0 commit comments

Comments
 (0)