mmc: host: factor out clearing the retune state
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 24 Jun 2021 15:16:16 +0000 (17:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:28 +0000 (10:15 +0200)
commit8ffb2611a752e1067c18fba39968080469394206
tree3bcc28c2d63251371a7f40d5afa8aa36766431f8
parent68249abd7ae8de55e59844436bcd3c8f51bdd252
mmc: host: factor out clearing the retune state

We have this in two places, so let's have a dedicated function. It is
also more readable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.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/20210624151616.38770-4-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/host.c
drivers/mmc/core/host.h