From patchwork Tue Dec 23 09:50:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Santa Cruz X-Patchwork-Id: 423625 X-Patchwork-Delegate: panto@antoniou-consulting.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id AD35714009B for ; Tue, 23 Dec 2014 20:53:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 064B34B666; Tue, 23 Dec 2014 10:52:52 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XuwnpNaeq5SP; Tue, 23 Dec 2014 10:52:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76B814B65B; Tue, 23 Dec 2014 10:52:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8FEC64B65B for ; Tue, 23 Dec 2014 10:52:40 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id goS6A5fCewgS for ; Tue, 23 Dec 2014 10:52:40 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0054.outbound.protection.outlook.com [157.55.234.54]) by theia.denx.de (Postfix) with ESMTPS id 6627D4B6DC for ; Tue, 23 Dec 2014 10:52:34 +0100 (CET) Received: from DB4PR01MB125.eurprd01.prod.exchangelabs.com (10.242.156.12) by DB4PR01MB159.eurprd01.prod.exchangelabs.com (10.242.156.149) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 23 Dec 2014 09:51:07 +0000 Received: from prefix.spinetix.local (212.147.27.179) by DB4PR01MB125.eurprd01.prod.exchangelabs.com (10.242.156.12) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 23 Dec 2014 09:51:06 +0000 From: Diego Santa Cruz To: Date: Tue, 23 Dec 2014 10:50:19 +0100 Message-ID: <1419328233-6977-5-git-send-email-Diego.SantaCruz@spinetix.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1419328233-6977-1-git-send-email-Diego.SantaCruz@spinetix.com> References: <1419328233-6977-1-git-send-email-Diego.SantaCruz@spinetix.com> MIME-Version: 1.0 X-Originating-IP: [212.147.27.179] X-ClientProxiedBy: DB4PR04CA0041.eurprd04.prod.outlook.com (25.160.41.51) To DB4PR01MB125.eurprd01.prod.exchangelabs.com (10.242.156.12) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Diego.SantaCruz@spinetix.com; X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB4PR01MB125; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:DB4PR01MB125; X-Forefront-PRVS: 04347F8039 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(76176999)(77156002)(110136001)(101416001)(68736005)(62966003)(31966008)(40100003)(21056001)(50986999)(122386002)(92566001)(99396003)(48376002)(2950100001)(86362001)(77096005)(87976001)(66066001)(2351001)(20776003)(107046002)(89996001)(97736003)(229853001)(4396001)(46102003)(120916001)(36756003)(64706001)(50466002)(106356001)(105586002)(19580395003)(19580405001)(50226001)(42186005)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR01MB125; H:prefix.spinetix.local; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: spinetix.com does not designate permitted sender hosts) X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:DB4PR01MB125; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2014 09:51:06.2504 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR01MB125 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB4PR01MB159; X-OriginatorOrg: spinetix.com Cc: panto@antoniou-consulting.com Subject: [U-Boot] [PATCH v4 04/18] mmc: skip mmcinfo partition info processing for eMMC < 4.41 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC >= 4.0, change it to do it for >= 4.41 Signed-off-by: Diego Santa Cruz --- common/cmd_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 10315b8..3f8dbdb 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -95,7 +95,7 @@ static void print_mmcinfo(struct mmc *mmc) printf("Bus Width: %d-bit%s\n", mmc->bus_width, mmc->ddr_mode ? " DDR" : ""); - if (!IS_SD(mmc) && (mmc->version >= MMC_VERSION_4)) { + if (!IS_SD(mmc) && (mmc->version >= MMC_VERSION_4_41)) { bool has_enh = (mmc->part_support & ENHNCD_SUPPORT) != 0; puts("User Capacity: "); print_size(mmc->capacity_user,