Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93933508 authored by Adrian Hunter's avatar Adrian Hunter Committed by Chris Ball
Browse files

mmc: sdhci-pci: enable runtime PM for Medfield SDIO



Runtime PM for SDIO is no longer enabled by default (see
5c7f0e08) so it must now
be enabled per platform, in this case Medfield uses it.

Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 30832ab5
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -248,6 +248,12 @@ static int mfd_emmc_probe_slot(struct sdhci_pci_slot *slot)
	return 0;
	return 0;
}
}


static int mfd_sdio_probe_slot(struct sdhci_pci_slot *slot)
{
	slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD;
	return 0;
}

static const struct sdhci_pci_fixes sdhci_intel_mrst_hc0 = {
static const struct sdhci_pci_fixes sdhci_intel_mrst_hc0 = {
	.quirks		= SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_NO_HISPD_BIT,
	.quirks		= SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_NO_HISPD_BIT,
	.probe_slot	= mrst_hc_probe_slot,
	.probe_slot	= mrst_hc_probe_slot,
@@ -266,6 +272,7 @@ static const struct sdhci_pci_fixes sdhci_intel_mfd_sd = {
static const struct sdhci_pci_fixes sdhci_intel_mfd_sdio = {
static const struct sdhci_pci_fixes sdhci_intel_mfd_sdio = {
	.quirks		= SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
	.quirks		= SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
	.allow_runtime_pm = true,
	.allow_runtime_pm = true,
	.probe_slot	= mfd_sdio_probe_slot,
};
};


static const struct sdhci_pci_fixes sdhci_intel_mfd_emmc = {
static const struct sdhci_pci_fixes sdhci_intel_mfd_emmc = {