From patchwork Tue Aug 12 09:29:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yisun1 X-Patchwork-Id: 4712051 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B2A79F38D for ; Tue, 12 Aug 2014 09:31:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B22292011B for ; Tue, 12 Aug 2014 09:31:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6AA320115 for ; Tue, 12 Aug 2014 09:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047AbaHLJbc (ORCPT ); Tue, 12 Aug 2014 05:31:32 -0400 Received: from mga14.intel.com ([192.55.52.115]:22056 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382AbaHLJbb convert rfc822-to-8bit (ORCPT ); Tue, 12 Aug 2014 05:31:31 -0400 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 12 Aug 2014 02:24:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="371278948" Received: from fmsmsx103.amr.corp.intel.com ([10.19.9.34]) by FMSMGA003.fm.intel.com with ESMTP; 12 Aug 2014 02:27:38 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.19.9.34) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 12 Aug 2014 02:30:52 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 12 Aug 2014 02:30:51 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.198]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.17]) with mapi id 14.03.0195.001; Tue, 12 Aug 2014 17:29:42 +0800 From: "Sun, Yi Y" To: "linux-mmc@vger.kernel.org" , Ulf Hansson Subject: RE: [PATCH] mmc: MMC_NUM_PHY_PARTITION is not right. Thread-Topic: [PATCH] mmc: MMC_NUM_PHY_PARTITION is not right. Thread-Index: AQHPrVeUCNKnmcS6T0iEGgNtO9vIfJvMvRGQ Date: Tue, 12 Aug 2014 09:29:40 +0000 Message-ID: <525EAED47491124EB5123A51BD2FC791019D95FD@SHSMSX101.ccr.corp.intel.com> References: <1406876600-9376-1-git-send-email-yi.y.sun@intel.com> In-Reply-To: <1406876600-9376-1-git-send-email-yi.y.sun@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: linux-mmc@vger.kernel.org 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. Signed-off-by: yisun1 --- include/linux/mmc/card.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index d424b9d..6dadac2 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -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 /*