Received: by 10.213.65.68 with SMTP id h4csp1563760imn; Thu, 15 Mar 2018 03:25:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELsAokMx99gzB9yYHL1tctHX0gp6xoWXrzADAGZ37gjR4Tx2GYs29a9FM/nVOnKxRIxzGbB9 X-Received: by 10.99.104.73 with SMTP id d70mr6322799pgc.107.1521109508319; Thu, 15 Mar 2018 03:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521109508; cv=none; d=google.com; s=arc-20160816; b=Bqew0DeKwd/egNapMsbXD+uBMMURd3sSY7nb6wS/L/h0lvcpAjKrFTRlsSUED6Cgss Y4qkU/iyR9zGDNiLBhmQyCTSmUwh5ifxo9ogDsTiSxrEF0W4O5t+1dwuxZWWkoocZtEP PBC7oYEw+SGRw2cMVrGNGUNe5dSpt6D2rnCWIU3dTHrjpzLypzlSjhOGujQwmgvRtuFt hmn2YXnn6moVveEZP3okrQom1eF5UYCALdaalsc5fKrE756D72kapAslWaTFC2aT36X+ DxqROQkxkCPVTKWt4cF8HhKMQYwj968Psruv8s5YtSlmDXG+R2xqUmJnl5t3LdsBrPEX Q59A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=UbdWxMQPwig/MUeS2RAKGknS4jQzn8W2kyxP9yT6ozI=; b=pWLMSiXB1sIQa5542yv7aSQyQXIT5ORV0L0SCpj8bOiR/W84o3IwYf2w1Sd4+nud54 J8Q9mUZvsJQn1j2URlnUkhpBXHjyA1dWX2Kd/YpadrZBt3zjC9I8bjQgkQW1bgCx5xql /DdnWHFDIiBX19BOOldpkHexnP+Nz5zZeKxbB+6Aayw5STfHvlkaZt99b+8TZTfhI8v4 X+DmkUTAYzrWsapFvQ3ER72ICtGDmQe/hvBTk3UmlOoCvLIYUht2b+/lmNo7TbwbpKum wx1iPRiNZKnWlElMa+z63ALi2+cUuOz0FMiI99YHXMOCakZ8iX39vf1AId8+Nwy5JVGR tZmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CnEXHQtS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10-v6si3550994plr.181.2018.03.15.03.24.54; Thu, 15 Mar 2018 03:25:08 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=CnEXHQtS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077AbeCOKXo (ORCPT + 99 others); Thu, 15 Mar 2018 06:23:44 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:40083 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbeCOKXm (ORCPT ); Thu, 15 Mar 2018 06:23:42 -0400 Received: by mail-it0-f68.google.com with SMTP id e64-v6so8492154ita.5 for ; Thu, 15 Mar 2018 03:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UbdWxMQPwig/MUeS2RAKGknS4jQzn8W2kyxP9yT6ozI=; b=CnEXHQtSif8626xFg8Za3+8ZM96uRdhGauJX8elu2Q6sM3sJhaO3lons2+rFLhISwV 1UPxMxhAuiJ6KEMQGF2nbUfHBobni4r9/Yce6nDZy2qsD2sia0VGmvUu9QC6qsvKaT14 xH5oWmHh1TXeBGlaDxZqseAgWx45cZ6syXVtc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UbdWxMQPwig/MUeS2RAKGknS4jQzn8W2kyxP9yT6ozI=; b=OhypErQ2/20ey30W2ZnEPY3X/bPeMy3CnzIEkriPFNe84gqug7mGdGXTB4Gvnn6UED V8Nw4pJ7pFXEOWXlfvsdDzTbxAsbF3xYwwLDVM7WBt3nImqqIiFUBrZOhGpB00Gq5Xx8 XeY+7ZZi2eRS4ghLYqLQWPIZx9EAys6gYsrXtvO3/0Gf+1rrV2oVBwwLyUVf7yrWgryx qkh613NiL5v8A3GAv63ABIrswwdggk8BnOZ8WNNXhcLpIMHX06ulidpVgXtKhBmMjbvM MZj9vkHPaXWApMGd7AS8LmBfrAGMmMM8d2JQqXRmojEHrCq2KAcw1GKUT7sGE9Hk7fgp cCyg== X-Gm-Message-State: AElRT7Hlb6UXfYhoIb7o7y0XhnbgMDoA+uYGSpMLVDGNBxL6z9DvwnYF rAAG74TzSR6lEQ7zXHBgpvgL4J3BFrAUPC6DWXZ0kQ== X-Received: by 2002:a24:2b89:: with SMTP id h131-v6mr5715085ita.97.1521109421698; Thu, 15 Mar 2018 03:23:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.101.23 with HTTP; Thu, 15 Mar 2018 03:23:41 -0700 (PDT) In-Reply-To: <1520398902-23012-1-git-send-email-harish_kandiga@mentor.com> References: <1520398902-23012-1-git-send-email-harish_kandiga@mentor.com> From: Ulf Hansson Date: Thu, 15 Mar 2018 11:23:41 +0100 Message-ID: Subject: Re: [PATCH v2] mmc: Export card RCA register to sysfs. To: Harish Jenny K N Cc: Linus Walleij , Adrian Hunter , Shawn Lin , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7 March 2018 at 06:01, Harish Jenny K N wrote: > This patch exports RCA register to sysfs which will help in > reading the disk identification information. > > Reviewed-by: Shawn Lin > Signed-off-by: Harish Jenny K N Thanks, applied for next! Kind regards Uffe > --- > > Changes in v2: > - Used 0x%04x to display 16 bit register > > 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..6f8ebd6 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%04x\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..2ecd098 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%04x\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 >