mmc: core: Allow hosts to specify non-support for MMC commands
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 1 Jul 2016 07:45:28 +0000 (15:45 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:47 +0000 (10:34 +0200)
commita0c3b68c72a355f5dab33c3ddcd257e5a718de0c
tree4a571c7a8f641773e4eb18110c1d821c8aa4d476
parent39f80bcb0eed20e08090f8b6ed10a0709f1ae36d
mmc: core: Allow hosts to specify non-support for MMC commands

Host drivers which needs to valdiate for non-supported MMC
commands and returnn error code for such requests.

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

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h