diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-20 11:33:53 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 12:40:41 +0100 |
commit | 148bcab28f51c80f13e5ad678fe840e8a34af46f (patch) | |
tree | 9f8d81b82725f2e9e02c82e48acdb79d3e8301ce /drivers/mmc/core/mmc_ops.c | |
parent | a1fc444e83de05ebbb6269029c9888b8f8b11490 (diff) | |
download | talos-obmc-linux-148bcab28f51c80f13e5ad678fe840e8a34af46f.tar.gz talos-obmc-linux-148bcab28f51c80f13e5ad678fe840e8a34af46f.zip |
mmc: core: Add helper function for EXT_CSD support
The helper function mmc_can_ext_csd() will return a positive value if
the card supports the EXT_CSD register. Start using it at relavant
places in the mmc core.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc_ops.c')
-rw-r--r-- | drivers/mmc/core/mmc_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 7911e0510a1d..1db60be43c37 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -675,3 +675,8 @@ int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) return 0; } + +int mmc_can_ext_csd(struct mmc_card *card) +{ + return (card && card->csd.mmca_vsn > CSD_SPEC_VER_3); +} |