Re: [PATCH][MMC][5/6] Secure Digital (SD) support : sysfs

From: Pierre Ossman
Date: Sat Mar 05 2005 - 20:54:25 EST


SCR sysfs access.

This provides access to the SCR register via sysfs. Since the latest bk contains some changes to the sysfs part this probably needs updating. The patch is trivial though so it should be easy.

Index: linux-sd/drivers/mmc/mmc_sysfs.c
===================================================================
--- linux-sd/drivers/mmc/mmc_sysfs.c (revision 135)
+++ linux-sd/drivers/mmc/mmc_sysfs.c (working copy)
@@ -163,6 +163,7 @@
card->raw_cid[2], card->raw_cid[3]);
MMC_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1],
card->raw_csd[2], card->raw_csd[3]);
+MMC_ATTR(scr, "%08x%08x\n", card->raw_scr[0], card->raw_scr[1]);
MMC_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
MMC_ATTR(fwrev, "0x%x\n", card->cid.fwrev);
MMC_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
@@ -174,6 +175,7 @@
static struct device_attribute *mmc_dev_attributes[] = {
&dev_attr_cid,
&dev_attr_csd,
+ &dev_attr_scr,
&dev_attr_date,
&dev_attr_fwrev,
&dev_attr_hwrev,