Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1442875 > unrolled thread
| Started by | Bojan Prtvar <prtvar.b@gmail.com> |
|---|---|
| First post | 2016-07-13 23:30 +0200 |
| Last post | 2016-07-18 13:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] mmc: sd: Extend sysfs with OCR register Bojan Prtvar <prtvar.b@gmail.com> - 2016-07-13 23:30 +0200
Re: [PATCH] mmc: sd: Extend sysfs with OCR register Ulf Hansson <ulf.hansson@linaro.org> - 2016-07-18 13:30 +0200
| From | Bojan Prtvar <prtvar.b@gmail.com> |
|---|---|
| Date | 2016-07-13 23:30 +0200 |
| Subject | [PATCH] mmc: sd: Extend sysfs with OCR register |
| Message-ID | <rUzTc-b7-31@gated-at.bofh.it> |
We already exported OCR for mmc cards. Let's export it
for sd cards as well.
Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
---
drivers/mmc/core/sd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index b95bd24..3dd0861 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);
--
2.8.0.GIT
[toc] | [next] | [standalone]
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Date | 2016-07-18 13:30 +0200 |
| Message-ID | <rWeUh-5vO-19@gated-at.bofh.it> |
| In reply to | #1442875 |
On 13 July 2016 at 23:22, Bojan Prtvar <prtvar.b@gmail.com> wrote:
> We already exported OCR for mmc cards. Let's export it
> for sd cards as well.
>
> Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
I decided to squash this change into the earlier applied: "mmc: core:
Extend sysfs with OCR register".
Thanks and kind regards
Uffe
> ---
> drivers/mmc/core/sd.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
> index b95bd24..3dd0861 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);
> --
> 2.8.0.GIT
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web