diff options
author | Douglas Anderson <dianders@chromium.org> | 2019-06-17 10:56:52 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-25 11:35:53 +0800 |
commit | 0349dbebbb0becda11953b3f633528d68780bc7e (patch) | |
tree | 48a7d2e3af36287fabe988ff100591eb192e3cba /include/linux | |
parent | 7ed49e1bf5b398940137ba4e13fea0f03994dc84 (diff) | |
download | linux-stable-0349dbebbb0becda11953b3f633528d68780bc7e.tar.gz linux-stable-0349dbebbb0becda11953b3f633528d68780bc7e.tar.bz2 linux-stable-0349dbebbb0becda11953b3f633528d68780bc7e.zip |
mmc: core: Add sdio_retune_hold_now() and sdio_retune_release()
commit b4c9f938d542d5f88c501744d2d12fad4fd2915f upstream.
We want SDIO drivers to be able to temporarily stop retuning when the
driver knows that the SDIO card is not in a state where retuning will
work (maybe because the card is asleep). We'll move the relevant
functions to a place where drivers can call them.
Cc: stable@vger.kernel.org #v4.18+
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mmc/sdio_func.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index b51eb7dfb4b9..6905f3f641cc 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h @@ -162,4 +162,7 @@ extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags); extern void sdio_retune_crc_disable(struct sdio_func *func); extern void sdio_retune_crc_enable(struct sdio_func *func); +extern void sdio_retune_hold_now(struct sdio_func *func); +extern void sdio_retune_release(struct sdio_func *func); + #endif /* LINUX_MMC_SDIO_FUNC_H */ |