summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sd.c
diff options
context:
space:
mode:
authorBojan Prtvar <prtvar.b@gmail.com>2016-07-04 13:56:55 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 10:34:48 +0200
commit5fb06af7a33b4b5cedccedb611cf77568163027b (patch)
tree28e587c400cb8e75b7eaf4766b57a7cffe739bd5 /drivers/mmc/core/sd.c
parent1883edd17d11983578ac7eb1ca63c5845bca56fe (diff)
downloadlinux-5fb06af7a33b4b5cedccedb611cf77568163027b.tar.gz
linux-5fb06af7a33b4b5cedccedb611cf77568163027b.tar.bz2
linux-5fb06af7a33b4b5cedccedb611cf77568163027b.zip
mmc: core: Extend sysfs with OCR register
Registers CID and CSD are already exported through sysfs so let's make this interface complete by adding missing OCR register. Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com> Reviewed-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r--drivers/mmc/core/sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index b95bd24d92f4..3dd0861f4557 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -675,6 +675,7 @@ MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
+MMC_DEV_ATTR(ocr, "%08x\n", card->ocr);
static struct attribute *sd_std_attrs[] = {
@@ -690,6 +691,7 @@ static struct attribute *sd_std_attrs[] = {
&dev_attr_name.attr,
&dev_attr_oemid.attr,
&dev_attr_serial.attr,
+ &dev_attr_ocr.attr,
NULL,
};
ATTRIBUTE_GROUPS(sd_std);