From patchwork Mon Mar 20 13:43:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 9634227 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 4436B602D6 for ; Mon, 20 Mar 2017 13:52:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 379EB26E8A for ; Mon, 20 Mar 2017 13:52:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C4D327F94; Mon, 20 Mar 2017 13:52:18 +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 C2EF126E8A for ; Mon, 20 Mar 2017 13:52:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754653AbdCTNuw (ORCPT ); Mon, 20 Mar 2017 09:50:52 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:54243 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754620AbdCTNuu (ORCPT ); Mon, 20 Mar 2017 09:50:50 -0400 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id C682427A3EF; Mon, 20 Mar 2017 14:43:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id BF118DA0A58; Mon, 20 Mar 2017 14:43:28 +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 Mq9__T2_xY5H; Mon, 20 Mar 2017 14:43:26 +0100 (CET) Received: from localhost.localdomain (ws-stein.systec.local [192.168.10.116]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 8C002DA0A43; Mon, 20 Mar 2017 14:43:26 +0100 (CET) From: Alexander Stein To: Chris Ball , linux-mmc@vger.kernel.org Cc: Alexander Stein Subject: [RESEND 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Date: Mon, 20 Mar 2017 14:43:00 +0100 Message-Id: <20170320134301.2909-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 --- Resend due to adding Chris to recipients 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]);