Message ID | 20250507134538.575912-1-loic.poulain@oss.qualcomm.com |
---|---|
State | New |
Headers | show |
Series | mmc: card: Scan the eMMC boot areas for partition table | expand |
On Wed, 7 May 2025 at 15:45, Loic Poulain <loic.poulain@oss.qualcomm.com> wrote: > > It appears that some vendors provision the boot areas with valid part > tables (GPT) in order to have identifiable partitions for device and > firmware specific data, such has the qualcomm CDT (Qualcomm Config > Data Table). Additionally, these boot areas can be utilized to host > device-specific IDs, calibration data, and other critical information. > > Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c > index 4830628510e6..c81925194509 100644 > --- a/drivers/mmc/core/block.c > +++ b/drivers/mmc/core/block.c > @@ -2655,7 +2655,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, > md->disk->private_data = md; > md->parent = parent; > set_disk_ro(md->disk, md->read_only || default_ro); > - if (area_type & (MMC_BLK_DATA_AREA_RPMB | MMC_BLK_DATA_AREA_BOOT)) > + if (area_type & MMC_BLK_DATA_AREA_RPMB) > md->disk->flags |= GENHD_FL_NO_PART; > > /* > -- > 2.34.1 >
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 4830628510e6..c81925194509 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2655,7 +2655,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, md->disk->private_data = md; md->parent = parent; set_disk_ro(md->disk, md->read_only || default_ro); - if (area_type & (MMC_BLK_DATA_AREA_RPMB | MMC_BLK_DATA_AREA_BOOT)) + if (area_type & MMC_BLK_DATA_AREA_RPMB) md->disk->flags |= GENHD_FL_NO_PART; /*
It appears that some vendors provision the boot areas with valid part tables (GPT) in order to have identifiable partitions for device and firmware specific data, such has the qualcomm CDT (Qualcomm Config Data Table). Additionally, these boot areas can be utilized to host device-specific IDs, calibration data, and other critical information. Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com> --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)