]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: add a 'doing_init_tune' flag and a 'mmc_doing_tune' helper
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Sep 2020 15:02:48 +0000 (17:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Sep 2020 07:16:31 +0000 (09:16 +0200)
commit988b4ce75c8a2b29f004fce2e1e0968d66977bca
tree58b9049f86266db853ed18fbfb4e94b204b144e2
parent4d978e90bff06b6a673bb0e5b9014057f69d58cb
mmc: core: add a 'doing_init_tune' flag and a 'mmc_doing_tune' helper

Our driver needs to know when tuning is in progress. 'doing_retune' only
covers re-tuning, not the initial tuning. Add another flag to detect the
initial tuning state and add a helper which tells us if any kind of
tuning is going on. Only implemented for MMC currently because that's
where we need it. SD can be added later if it becomes necessary.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20200901150250.26236-3-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
include/linux/mmc/host.h