From patchwork Thu Dec 4 17:02:03 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: 417854 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 1BD3E1400DD for ; Fri, 5 Dec 2014 04:04:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 91D7B4B667; Thu, 4 Dec 2014 18:03:41 +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 ndKC9QRUwwRy; Thu, 4 Dec 2014 18:03:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 196904B675; Thu, 4 Dec 2014 18:03:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2500B4B600 for ; Thu, 4 Dec 2014 18:02:55 +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 a5WLrqiK5drw for ; Thu, 4 Dec 2014 18:02:55 +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-db3on0092.outbound.protection.outlook.com [157.55.234.92]) by theia.denx.de (Postfix) with ESMTPS id A1BE44B604 for ; Thu, 4 Dec 2014 18:02:54 +0100 (CET) Received: from localhost.localdomain (212.147.27.179) by AM3PR01MB114.eurprd01.prod.exchangelabs.com (10.242.244.150) with Microsoft SMTP Server (TLS) id 15.1.31.17; Thu, 4 Dec 2014 17:02:51 +0000 From: Diego Santa Cruz To: Date: Thu, 4 Dec 2014 18:02:03 +0100 Message-ID: <1417712535-14006-7-git-send-email-Diego.SantaCruz@spinetix.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1417712535-14006-1-git-send-email-Diego.SantaCruz@spinetix.com> References: <1417712535-14006-1-git-send-email-Diego.SantaCruz@spinetix.com> MIME-Version: 1.0 X-Originating-IP: [212.147.27.179] X-ClientProxiedBy: AM3PR04CA0023.eurprd04.prod.outlook.com (10.242.16.23) To AM3PR01MB114.eurprd01.prod.exchangelabs.com (10.242.244.150) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:AM3PR01MB114; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:AM3PR01MB114; X-Forefront-PRVS: 041517DFAB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(97736003)(86362001)(42186005)(122386002)(40100003)(92566001)(50226001)(68736005)(21056001)(107046002)(76176999)(2351001)(62966003)(99396003)(101416001)(31966008)(50986999)(4396001)(229853001)(77096005)(50466002)(46102003)(105586002)(87976001)(89996001)(77156002)(36756003)(110136001)(48376002)(106356001)(64706001)(47776003)(66066001)(20776003)(120916001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR01MB114; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:AM3PR01MB114; X-OriginatorOrg: spinetix.com Cc: panto@antoniou-consulting.com Subject: [U-Boot] [PATCH v2 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor 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 --- drivers/mmc/mmc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index c045f9e..b088fd7 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@ static int mmc_startup(struct mmc *mmc) mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]; mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_WP_GRP_SIZE]; + mmc->capacity_gp[i] <<= 19; if (mmc->capacity_gp[i]) has_parts = true; }