Skip to contentSkip to conversation

mmc: MMC_NUM_PHY_PARTITION is not right.

PATCH Superseded yisun1 2 participants 3 messages Aug 1, 2014 – Aug 12, 2014 MMC, SD and SDIO

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

yisun1

author
#0 lore raw

PATCH 1/1 mmc: MMC_NUM_PHY_PARTITION is not right.

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.

---
 include/linux/mmc/card.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmc/card.h +1 -1
index d424b9d..6dadac2 100644
@@ -218,7 +218,7 @@ enum mmc_blk_status {
  */
 #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
 
 /*
Signature · 1 line
1.7.9.5
author
#1 lore raw

Hi, Ulf,

Could you please check this fix? Thanks!

BRs,
Sun Yi

-----Original Message-----
From: Sun, Yi Y
Sent: Friday, August 01, 2014 3:03 PM
To: [email protected]
Cc: Sun, Yi Y
Subject: [PATCH] mmc: MMC_NUM_PHY_PARTITION is not right.

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.

---
 include/linux/mmc/card.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmc/card.h +1 -1
@@ -218,7 +218,7 @@ enum mmc_blk_status {
  */
 #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
 
 /*

--
1.7.9.5

#2 lore raw
Quoted 14 lines · Yi Y

Hi, Ulf,

Could you please check this fix? Thanks!

BRs,
Sun Yi

-----Original Message-----
From: Sun, Yi Y
Sent: Friday, August 01, 2014 3:03 PM
To: [email protected]
Cc: Sun, Yi Y
Subject: [PATCH] mmc: MMC_NUM_PHY_PARTITION is not right.

Quoted 5 lines

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.

Could you please update your name in SOB tag to your proper name.

include/linux/mmc/card.h enum mmc_blk_status { · line 218

Quoted 9 lines
---
 include/linux/mmc/card.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmc/card.h +0 -0
@@ -218,7 +218,7 @@ enum mmc_blk_status {
  */

There are a small comment in the code just prior these defines, could update it so that it becomes obvious why MMC_NUM_PHY_PARTITION shall be 7.

Quoted 10 lines
include/linux/mmc/card.h +1 -2
 #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
 
 /*
--

1.7.9.5

I think we should handle this a fix and it should go stable as well.

Kind regards
Uffe