Support Uno4kSE
[vuplus_openvuplus_3.0] / meta-bsp / recipes-kernel / linux / linux-vuplus-4.1.20 / linux_rpmb_not_alloc.patch
1 diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
2 index 198255e..afee94c 100644
3 --- a/drivers/mmc/card/block.c
4 +++ b/drivers/mmc/card/block.c
5 @@ -2268,7 +2268,7 @@ static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md)
6                 return 0;
7  
8         for (idx = 0; idx < card->nr_parts; idx++) {
9 -               if (card->part[idx].size) {
10 +               if (card->part[idx].size && !(card->part[idx].area_type & MMC_BLK_DATA_AREA_RPMB)) {
11                         ret = mmc_blk_alloc_part(card, md,
12                                 card->part[idx].part_cfg,
13                                 card->part[idx].size >> 9,