mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Steven J. Hill <[email protected]> Acked-by: David Daney <[email protected]>
This commit is contained in:
parent
f328c76e56
commit
33e6d74d65
2 changed files with 8 additions and 0 deletions
|
|
@ -2560,6 +2560,12 @@ unsigned int mmc_calc_max_discard(struct mmc_card *card)
|
|||
}
|
||||
EXPORT_SYMBOL(mmc_calc_max_discard);
|
||||
|
||||
bool mmc_card_is_blockaddr(struct mmc_card *card)
|
||||
{
|
||||
return card ? mmc_card_blockaddr(card) : false;
|
||||
}
|
||||
EXPORT_SYMBOL(mmc_card_is_blockaddr);
|
||||
|
||||
int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen)
|
||||
{
|
||||
struct mmc_command cmd = {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue