mmc: core: Add mmc_retune_hold_now()
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 10 Aug 2017 12:08:06 +0000 (15:08 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:02:01 +0000 (14:02 +0200)
commitbf517d6fec719980fe3b7acd9670a68442a372b7
tree4f965264412da3f37c5145d21ae7efc6eb281429
parentdc8d68bb6c6f7d7fb1aeb3450c0654598e4f4e52
mmc: core: Add mmc_retune_hold_now()

mmc_return_hold() / mmc_retune_release() are used around a group of
commands to prevent re-tuning between the commands. Re-tuning can still
happen before the first command. In some cases, re-tuning must be
prevented entirely. Add mmc_retune_hold_now() for that purpose. It is
added in preparation for CQE support where it will be used by CQE recovery.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
drivers/mmc/core/host.h