Skip to content

Commit da721cf

Browse files
ahunter6cjb
authored andcommitted
mmc: sdhci-pci: select HC erase size for Medfield eMMC
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 83bb24a commit da721cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/mmc/host/sdhci-pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ static inline void sdhci_pci_remove_own_cd(struct sdhci_pci_slot *slot)
244244
static int mfd_emmc_probe_slot(struct sdhci_pci_slot *slot)
245245
{
246246
slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE;
247-
slot->host->mmc->caps2 = MMC_CAP2_BOOTPART_NOACC;
247+
slot->host->mmc->caps2 |= MMC_CAP2_BOOTPART_NOACC |
248+
MMC_CAP2_HC_ERASE_SZ;
248249
return 0;
249250
}
250251

0 commit comments

Comments
 (0)