mmc: core: Allow hosts to specify non-support for SD commands
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Jun 2016 13:12:46 +0000 (15:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:22 +0000 (10:34 +0200)
commit1b8d79c5494484d140f2a19101412b51e2d5f6b5
tree83b19b871e56b507ce55102e4b99098ff3aeedae
parent2801b95e8ff0fc24d7708a67bb98902dad197635
mmc: core: Allow hosts to specify non-support for SD commands

There are host drivers which needs to valdiate for non-supported SD
commands and returnn error code for such requests.

To improve and simplify the behaviour, let's invent MMC_CAP2_NO_SD
which these host drivers can set to tell the mmc core to skip sending SD
commands during card initialization.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h