aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorUri Yanai <uri.yanai@sandisk.com>2016-08-14 04:46:36 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2016-09-26 15:31:09 -0400
commit5275a652d296711aaf7f2f4173c8db153e5777c3 (patch)
tree1a3b3c42261e76dcbafb4ba118e4e94a531c36bc /include/linux/mmc
parentd51c50525f0a4c6b58fdd493a933017c62d98731 (diff)
mmc: sd: Export SD Status via “ssr” device attribute
The SD Status register contains several important fields related to the SD Card proprietary features. Those fields may be used by user space applications for vendor specific usage. None of those fields are exported today by the driver to user space. In this patch, we are reading the SD Status register and exporting (using MMC_DEV_ATTR) the SD Status register to the user space. Signed-off-by: Uri Yanai <uri.yanai@sandisk.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index d8673ca968ba..73fad83acbcb 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -292,6 +292,7 @@ struct mmc_card {
292 u32 raw_cid[4]; /* raw card CID */ 292 u32 raw_cid[4]; /* raw card CID */
293 u32 raw_csd[4]; /* raw card CSD */ 293 u32 raw_csd[4]; /* raw card CSD */
294 u32 raw_scr[2]; /* raw card SCR */ 294 u32 raw_scr[2]; /* raw card SCR */
295 u32 raw_ssr[16]; /* raw card SSR */
295 struct mmc_cid cid; /* card identification */ 296 struct mmc_cid cid; /* card identification */
296 struct mmc_csd csd; /* card specific */ 297 struct mmc_csd csd; /* card specific */
297 struct mmc_ext_csd ext_csd; /* mmc v4 extended card specific */ 298 struct mmc_ext_csd ext_csd; /* mmc v4 extended card specific */