From patchwork Mon Mar 20 11:07:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 9633835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 78CAF6020B for ; Mon, 20 Mar 2017 11:10:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DD3327F94 for ; Mon, 20 Mar 2017 11:10:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6057C27FA6; Mon, 20 Mar 2017 11:10:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A713E27F94 for ; Mon, 20 Mar 2017 11:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753864AbdCTLJe (ORCPT ); Mon, 20 Mar 2017 07:09:34 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:36351 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754218AbdCTLIP (ORCPT ); Mon, 20 Mar 2017 07:08:15 -0400 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id C81AC27A3EF for ; Mon, 20 Mar 2017 12:07:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id B206EDA0A58; Mon, 20 Mar 2017 12:07:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at imapserver.systec-electronic.com Received: from imapserver.systec-electronic.com ([127.0.0.1]) by localhost (imapserver.systec-electronic.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UkUyHRu_hGBy; Mon, 20 Mar 2017 12:07:20 +0100 (CET) Received: from localhost.localdomain (ws-stein.systec.local [192.168.10.116]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 87919DA0A43; Mon, 20 Mar 2017 12:07:20 +0100 (CET) From: Alexander Stein To: linux-mmc@vger.kernel.org Cc: Alexander Stein Subject: [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Date: Mon, 20 Mar 2017 12:07:08 +0100 Message-Id: <20170320110709.31079-1-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.10.2 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexander Stein --- mmc.h | 1 + mmc_cmds.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mmc.h b/mmc.h index f3fa03f..fa49df6 100644 --- a/mmc.h +++ b/mmc.h @@ -63,6 +63,7 @@ #define EXT_CSD_NUM_OF_FW_SEC_PROG_0 302 /* RO */ #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B 269 /* RO */ #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A 268 /* RO */ +#define EXT_CSD_PRE_EOL_INFO 267 /* RO */ #define EXT_CSD_FIRMWARE_VERSION 254 /* RO */ #define EXT_CSD_CACHE_SIZE_3 252 #define EXT_CSD_CACHE_SIZE_2 251 diff --git a/mmc_cmds.c b/mmc_cmds.c index 0e4322e..728ad77 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -1748,6 +1748,11 @@ int do_read_extcsd(int nargs, char **argv) ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]); } + if (ext_csd_rev >= 7) { + printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n", + ext_csd[EXT_CSD_PRE_EOL_INFO]); + } + if (ext_csd_rev >= 8) { printf("Command Queue Support [CMDQ_SUPPORT]: 0x%02x\n", ext_csd[EXT_CSD_CMDQ_SUPPORT]);