]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:49:15 +0000 (21:49 +0200)
commitadcb1bc49f0a3896d97e760d13e29148b05cdeef
tree5a3590e037d82638dbd3a7e0a6f9442230fe6d3a
parentff35c78cbd9848880d658a532bf38f3a9b726553
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>
drivers/mmc/core/core.c
include/linux/mmc/card.h