From patchwork Tue Jul 26 08:12:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyungmin Park X-Patchwork-Id: 1007452 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6Q8D9X6027934 for ; Tue, 26 Jul 2011 08:13:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686Ab1GZINI (ORCPT ); Tue, 26 Jul 2011 04:13:08 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:16936 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752621Ab1GZIMr (ORCPT ); Tue, 26 Jul 2011 04:12:47 -0400 Received: from epcpsbgm2.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LOX00LMJLH0SN50@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Tue, 26 Jul 2011 17:12:45 +0900 (KST) X-AuditID: cbfee61b-b7c3dae000002cb8-46-4e2e76fdb299 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (MMPCPMTA) with SMTP id AD.89.11448.DF67E2E4; Tue, 26 Jul 2011 17:12:45 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LOX00LJDLH9PJ@mmp2.samsung.com> for linux-mmc@vger.kernel.org; Tue, 26 Jul 2011 17:12:45 +0900 (KST) Received: from july ([165.213.219.111]) by TNRNDGASPAPP1.tn.corp.samsungelectronics.net with Microsoft SMTPSVC(6.0.3790.4675); Tue, 26 Jul 2011 17:13:05 +0900 Received: by july (sSMTP sendmail emulation); Tue, 26 Jul 2011 17:12:37 +0900 Date: Tue, 26 Jul 2011 17:12:37 +0900 From: Kyungmin Park Subject: [PATCH] Detect the mmc v4.5 To: linux-mmc@vger.kernel.org, Chris Ball Cc: jh80.chung@samsung.com Message-id: <20110726081237.GA15049@july> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-OriginalArrivalTime: 26 Jul 2011 08:13:05.0720 (UTC) FILETIME=[D8C3DB80:01CC4B6B] X-Brightmail-Tracker: AAAAAA== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 26 Jul 2011 08:13:09 +0000 (UTC) From: Kyungmin Park As eMMC v4.5 Spec is released, prepare the eMMC v4.5 EXT_CSD_REV Extended CSD Revision 255-7 Reserved 6 Revision 1.6 (for MMC v4.5) 5 Revision 1.5 (for MMV v4.41) ... Signed-off-by: Kyungmin Park --- -- 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/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index aa7d1d7..5700b1c 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -259,7 +259,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) } card->ext_csd.rev = ext_csd[EXT_CSD_REV]; - if (card->ext_csd.rev > 5) { + if (card->ext_csd.rev > 6) { printk(KERN_ERR "%s: unrecognised EXT_CSD revision %d\n", mmc_hostname(card->host), card->ext_csd.rev); err = -EINVAL;