Skip to content

Commit eb813af

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 eb813af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/mmc/host/sdhci-pci-core.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,12 @@ static void sdhci_intel_set_power(struct sdhci_host *host, unsigned char mode,
608608

609609
sdhci_set_power(host, mode, vdd);
610610

611-
if (mode == MMC_POWER_OFF)
611+
if (mode == MMC_POWER_OFF) {
612+
if (slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_APL_SD ||
613+
slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_BYT_SD)
614+
usleep_range(15000, 17500);
612615
return;
616+
}
613617

614618
/*
615619
* Bus power might not enable after D3 -> D0 transition due to the

0 commit comments

Comments
 (0)