From patchwork Wed Dec 4 00:29:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3280051 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 D18B49F37A for ; Wed, 4 Dec 2013 00:29:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E58B020452 for ; Wed, 4 Dec 2013 00:29:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FF862044C for ; Wed, 4 Dec 2013 00:29:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753737Ab3LDA3P (ORCPT ); Tue, 3 Dec 2013 19:29:15 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:37071 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206Ab3LDA3P (ORCPT ); Tue, 3 Dec 2013 19:29:15 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MX900BW3AOP5360@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Wed, 04 Dec 2013 09:29:13 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 1A.E3.16251.9577E925; Wed, 04 Dec 2013 09:29:13 +0900 (KST) X-AuditID: cbfee691-b7fd26d000003f7b-7d-529e77599a0b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 15.64.15903.9577E925; Wed, 04 Dec 2013 09:29:13 +0900 (KST) Received: from [10.252.81.186] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MX900EJNAOPPY60@mmp1.samsung.com>; Wed, 04 Dec 2013 09:29:13 +0900 (KST) Message-id: <529E775B.5000308@samsung.com> Date: Wed, 04 Dec 2013 09:29:15 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-version: 1.0 To: "linux-mmc@vger.kernel.org" Cc: 'Chris Ball' Subject: [PATCH] mmc-utils: add the revision for eMMC5.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsWyRsSkWDeyfF6QQfdPE4vtrzeyWRz538/o wORx6MpaRo/Pm+QCmKK4bFJSczLLUov07RK4MiZ+3s5U0MhSsePzCaYGxh7mLkZODgkBE4mN Ww5D2WISF+6tZ+ti5OIQEljKKPGv+xAbTNHpD/3sEIlFjBKrPh6Hcl4zShxctpoJpIpXQEti 3pvfLCA2i4CqRPPmt2A2m4COxPZvx8FqRAXCJBYueMYCUS8o8WPyPSCbg0NEwFqi+bcsSJhZ QFHix++17CC2sICFxI35O1kh4joS+1unsUHY8hKb17yFuvo7m8T7i6wQawUkvk0+BDZSQkBW YtMBqBJJiYMrbrBMYBSZhWTxLCRTZyGZuoCReRWjaGpBckFxUnqRqV5xYm5xaV66XnJ+7iZG YNCf/vds4g7G+wesDzEmA62cyCwlmpwPjJq8knhDYzMjC1MTU2Mjc0sz0oSVxHnTHyUFCQmk J5akZqemFqQWxReV5qQWH2Jk4uCUamCs2W4QH+V17VDi9Zb6c4e2rwvM4p6lnT7/sPHnQ57C W85W8vPPnbo7RFhlg9/7A1NM17OI2adUseiEvHqcatnx+gzj2tzrPzrt36X0pVfwBRne8g7J mbWyrLHPMTTj8jzJi8wWt1bpeMx5e+9ra/e3dxWKT5v+vQzj6WI+1q09beNkrmMlZ7yVWIoz Eg21mIuKEwFeS5rnkAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNIsWRmVeSWpSXmKPExsVy+t9jAd3I8nlBBk/36Vlsf72RzeLI/35G ByaPQ1fWMnp83iQXwBTVwGiTkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQl5ib aqvk4hOg65aZAzRfSaEsMacUKBSQWFyspG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYw5gx8fN2 poJGloodn08wNTD2MHcxcnJICJhInP7Qzw5hi0lcuLeerYuRi0NIYBGjxKqPx9khnNeMEgeX rWYCqeIV0JKY9+Y3C4jNIqAq0bz5LZjNJqAjsf3bcbAaUYEwiYULnrFA1AtK/Jh8D8jm4BAR sJZo/i0LEmYWUJT48Xst2GJhAQuJG/N3skLEdST2t05jg7DlJTavecs8gZFvFpJJs5CUzUJS toCReRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGcFQ9k97BuKrB4hCjAAejEg9vAue8ICHW xLLiytxDjBIczEoivDZlQCHelMTKqtSi/Pii0pzU4kOMyUCPTmSWEk3OB0Z8Xkm8obGJmZGl kbmhhZGxOWnCSuK8B1utA4UE0hNLUrNTUwtSi2C2MHFwSjUw+qxbunt63YvT7z1UlPlX9J6Z O1lEvJkrPem5wfcHZk6PF7pH7P868ffM+A/aOpvqQ8NjJHXs34t1MWizu89hb02d9Pk6p+vt HQ/ObnZjnbmWp/zs3rpXFsappyszUvYtVQ/OzJ7xhftRygrDHSp10WtYFnBvZVRjmtrKZG9l eaWhdn7ZS737SizFGYmGWsxFxYkAKuuSwu4CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 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 To know whether eMMC card is version5.0 or not, add the check point. Signed-off-by: Jaehoon Chung Reviewed-by: Jackey Shen --- mmc_cmds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mmc_cmds.c b/mmc_cmds.c index b8afa74..5edf42b 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -722,6 +722,9 @@ int do_read_extcsd(int nargs, char **argv) ext_csd_rev = ext_csd[192]; switch (ext_csd_rev) { + case 7: + str = "5.0"; + break; case 6: str = "4.5"; break;