mmc: sd: Export SD Status via “ssr” device attribute
authorUri Yanai <uri.yanai@sandisk.com>
Sun, 14 Aug 2016 08:46:36 +0000 (11:46 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:09 +0000 (21:31 +0200)
commit5275a652d296711aaf7f2f4173c8db153e5777c3
tree1a3b3c42261e76dcbafb4ba118e4e94a531c36bc
parentd51c50525f0a4c6b58fdd493a933017c62d98731
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>
drivers/mmc/core/sd.c
include/linux/mmc/card.h