diff options
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-core.c')
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 93bb0ff82f24..40f4fe833aba 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c | |||
@@ -422,14 +422,19 @@ static const struct sdhci_pci_fixes sdhci_intel_byt_sd = { | |||
422 | 422 | ||
423 | static int intel_mrfld_mmc_probe_slot(struct sdhci_pci_slot *slot) | 423 | static int intel_mrfld_mmc_probe_slot(struct sdhci_pci_slot *slot) |
424 | { | 424 | { |
425 | if ((PCI_FUNC(slot->chip->pdev->devfn) != INTEL_MRFLD_EMMC_0) && | 425 | unsigned int func = PCI_FUNC(slot->chip->pdev->devfn); |
426 | (PCI_FUNC(slot->chip->pdev->devfn) != INTEL_MRFLD_EMMC_1)) | 426 | |
427 | switch (func) { | ||
428 | case INTEL_MRFLD_EMMC_0: | ||
429 | case INTEL_MRFLD_EMMC_1: | ||
430 | slot->host->mmc->caps |= MMC_CAP_NONREMOVABLE | | ||
431 | MMC_CAP_8_BIT_DATA | | ||
432 | MMC_CAP_1_8V_DDR; | ||
433 | break; | ||
434 | default: | ||
427 | /* SD support is not ready yet */ | 435 | /* SD support is not ready yet */ |
428 | return -ENODEV; | 436 | return -ENODEV; |
429 | 437 | } | |
430 | slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE | | ||
431 | MMC_CAP_1_8V_DDR; | ||
432 | |||
433 | return 0; | 438 | return 0; |
434 | } | 439 | } |
435 | 440 | ||