From: lintao Date: Tue, 9 Sep 2014 02:23:35 +0000 (+0800) Subject: mmc: fix wrong physical partition definition X-Git-Tag: firefly_0821_release~4738 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1040978412d3cb841652715336d531aa75fbba62;p=firefly-linux-kernel-4.4.55.git mmc: fix wrong physical partition definition eMMC card can support up to 7 partitions, including 2 boot, 1 RPMB and 4 GPs. But MMC_NUM_PHY_PARTITION is defined to 6 so we should fix it to 7. --- diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index b73027298b3a..cfa28593de91 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -212,11 +212,12 @@ enum mmc_blk_status { }; /* The number of MMC physical partitions. These consist of: - * boot partitions (2), general purpose partitions (4) in MMC v4.4. + * boot partitions (2), general purpose partitions (4) and + * RPMB partition (1) in MMC v4.4. */ #define MMC_NUM_BOOT_PARTITION 2 #define MMC_NUM_GP_PARTITION 4 -#define MMC_NUM_PHY_PARTITION 6 +#define MMC_NUM_PHY_PARTITION 7 #define MAX_MMC_PART_NAME_LEN 20 /*