mmc: core: Export API to allow hosts to get the card address
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 18:41:55 +0000 (13:41 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:16 +0000 (15:38 -0500)
commit023895b719a58ba83f25451fabc4bb368878c255
tree28a9c6f518e30cfdefa1114a205b2782fda1654f
parentc75a0482ca3ea58bf64e431a6c4eabc4847a5965
mmc: core: Export API to allow hosts to get the card address

Some hosts controllers, like Cavium, needs to know whether the card
operates in byte- or block-address mode. Therefore export a new API,
mmc_card_is_blockaddr(), which provides this information.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Steven J. Hill <Steven.Hill@cavium.com>
Acked-by: David Daney <david.daney@cavium.com>
(cherry picked from commit 33e6d74d65c358270f00d228877178964aab84b3)
drivers/mmc/core/core.c
include/linux/mmc/card.h