Received: by 10.223.185.116 with SMTP id b49csp3771629wrg; Tue, 6 Mar 2018 04:51:12 -0800 (PST) X-Google-Smtp-Source: AG47ELsEPvu2tPJm5SyTDYXLj2kNMarN9O8vMTKeAU2gmNvmvdSOLAfl3N10Z1+z3OuxogibHuXG X-Received: by 2002:a17:902:d682:: with SMTP id v2-v6mr16585207ply.348.1520340672845; Tue, 06 Mar 2018 04:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520340672; cv=none; d=google.com; s=arc-20160816; b=MfudYNPcnpm1ZukoUznoJwnW8iqRtE1s/GAaqYZqtE1NxctiMNIbu4p8g4P4VDaayl jvio7QwVpIhos3OLTuLUwbJQ/Xq5quC5U/OSKQSOFbcqneX9x/V3ZnUE7FzVH0jplXmD 8lWQZk6aF0bZf6921/5RPFlcSERODym2fdKMYZzBsT5iS6lv+ooEVYci3I+pFOKJAHTf L6FevSnwOXBVQMue6a7yUiPK2dCkKBTO0UQuJfnSU4GTKhwKXMKy54Uj1UJmZcVgSf/W egsIuJtpWDarSpmhIQWH5iRvsSR3hOpExU6bqogBWrsrYQJRiHbZnlQnm6CBUMgPfkls tXeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=k+y0ucFZz+amX+/D0NeiresPrIYHt8t+eCqsn6ARoqU=; b=VV9Z10/4kf7cTMkwje1ccJ9L5OWtFCcIjt8ihBFtel31GvYKK7yw84Rh+WYI9TOxu/ 91o9G05bgDTkIuk8cQLDLPYgNgnrBu7nRYNl7Q3TAf1Tzp+CbdfYPuCy9jJojTthiykz yJvFKfiJ01YSZHDRdpSiBTkH5c0j+0oKT8PwfYn82KHcOWuNu53tb5TZmk1zcerTGGoY bf1ehWodI2GkOKvlz4xHpeWegSqq/L0ukngsUsu7q7/4OCE7Iup9nV9HBYckgRu6QoMT Olp/iDFCUupF7nuvGKHi1GMIGL8D2H6u5cMiZADiF6atOwihQmvcCjAkZKzyKpYmX1it /+tA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si2632505pgo.257.2018.03.06.04.50.58; Tue, 06 Mar 2018 04:51:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753739AbeCFMsr (ORCPT + 99 others); Tue, 6 Mar 2018 07:48:47 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:57946 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753703AbeCFMso (ORCPT ); Tue, 6 Mar 2018 07:48:44 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1etC1L-0001ti-Eg from Harish_Kandiga@mentor.com ; Tue, 06 Mar 2018 04:48:43 -0800 Received: from [10.0.2.15] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 6 Mar 2018 12:48:38 +0000 Subject: Re: [PATCH] mmc: Export card RCA register to sysfs. To: , , , CC: , References: <1519732580-2867-1-git-send-email-harish_kandiga@mentor.com> From: Harish Jenny K N Message-ID: <9ed7e027-9fc0-0d29-33bc-87811b496510@mentor.com> Date: Tue, 6 Mar 2018 18:18:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519732580-2867-1-git-send-email-harish_kandiga@mentor.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 27 February 2018 05:26 PM, Harish Jenny K N wrote: > This patch exports RCA register to sysfs which will help in > reading the disk identification information. > > Signed-off-by: Harish Jenny K N > --- > drivers/mmc/core/mmc.c | 2 ++ > drivers/mmc/core/sd.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c > index 208a762..d45a244 100644 > --- a/drivers/mmc/core/mmc.c > +++ b/drivers/mmc/core/mmc.c > @@ -792,6 +792,7 @@ static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) > MMC_DEV_ATTR(raw_rpmb_size_mult, "%#x\n", card->ext_csd.raw_rpmb_size_mult); > MMC_DEV_ATTR(rel_sectors, "%#x\n", card->ext_csd.rel_sectors); > MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); > +MMC_DEV_ATTR(rca, "0x%x\n", card->rca); > MMC_DEV_ATTR(cmdq_en, "%d\n", card->ext_csd.cmdq_en); > > static ssize_t mmc_fwrev_show(struct device *dev, > @@ -848,6 +849,7 @@ static ssize_t mmc_dsr_show(struct device *dev, > &dev_attr_raw_rpmb_size_mult.attr, > &dev_attr_rel_sectors.attr, > &dev_attr_ocr.attr, > + &dev_attr_rca.attr, > &dev_attr_dsr.attr, > &dev_attr_cmdq_en.attr, > NULL, > diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c > index 62b84dd..17d9005 100644 > --- a/drivers/mmc/core/sd.c > +++ b/drivers/mmc/core/sd.c > @@ -676,6 +676,7 @@ static int mmc_sd_init_uhs_card(struct mmc_card *card) > MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid); > MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial); > MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); > +MMC_DEV_ATTR(rca, "0x%x\n", card->rca); > > > static ssize_t mmc_dsr_show(struct device *dev, > @@ -709,6 +710,7 @@ static ssize_t mmc_dsr_show(struct device *dev, > &dev_attr_oemid.attr, > &dev_attr_serial.attr, > &dev_attr_ocr.attr, > + &dev_attr_rca.attr, > &dev_attr_dsr.attr, > NULL, > }; > -- > 1.9.1 > Any comments/inputs on this ? Thanks, Harish Jenny K N