mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mmc: block: support no access to boot partitions
Intel Medfield platform blocks access to eMMC boot partitions which results in switch errors. Since there is no access, mmcboot0/1 devices should not be created. Add a host capability to reflect that. Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
0d7d85ca6e
commit
f7c56ef2af
3 changed files with 13 additions and 1 deletions
|
|
@ -1480,7 +1480,7 @@ static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md)
|
|||
if (!mmc_card_mmc(card))
|
||||
return 0;
|
||||
|
||||
if (card->ext_csd.boot_size) {
|
||||
if (card->ext_csd.boot_size && mmc_boot_partition_access(card->host)) {
|
||||
ret = mmc_blk_alloc_part(card, md, EXT_CSD_PART_CONFIG_ACC_BOOT0,
|
||||
card->ext_csd.boot_size >> 9,
|
||||
true,
|
||||
|
|
|
|||
|
|
@ -215,6 +215,8 @@ static int mfd_emmc_probe_slot(struct sdhci_pci_slot *slot)
|
|||
|
||||
slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA;
|
||||
|
||||
slot->host->mmc->caps2 = MMC_CAP2_BOOTPART_NOACC;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue