mmc: sdhci-pci: select HC erase size for Medfield eMMC
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 7 Feb 2012 12:48:53 +0000 (14:48 +0200)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:08 +0000 (12:20 -0400)
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pci.c

index 6ebdc4010e7ccb46e6f1052357fcdaca5dc3ecc9..9952535671f2fb54f1024816d8254410e830061f 100644 (file)
@@ -244,7 +244,8 @@ static inline void sdhci_pci_remove_own_cd(struct sdhci_pci_slot *slot)
 static int mfd_emmc_probe_slot(struct sdhci_pci_slot *slot)
 {
        slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE;
-       slot->host->mmc->caps2 = MMC_CAP2_BOOTPART_NOACC;
+       slot->host->mmc->caps2 |= MMC_CAP2_BOOTPART_NOACC |
+                                 MMC_CAP2_HC_ERASE_SZ;
        return 0;
 }