summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiyuan Xu <xzy.xu@rock-chips.com>2017-05-15 09:07:19 +0300
committerKever Yang <kever.yang@rock-chips.com>2017-07-18 17:08:30 +0300
commitf7f28374a09e2a59430064a9e2c643ffcf55bd92 (patch)
treea74ce4dc2d638b22cd47204b9311b0d4219a87b1
parent0626db663b184485fba3ba122aeb522ca994ac5a (diff)
downloadu-boot-f7f28374a09e2a59430064a9e2c643ffcf55bd92.tar.xz
mmc: sdhci: update host->clock after clock setting
Overwrite host->clock after clock setting to avoid repetitive reset clock. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
-rw-r--r--drivers/mmc/sdhci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 57445006a0..fc8ba00e59 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -389,6 +389,9 @@ static int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
clk |= SDHCI_CLOCK_CARD_EN;
sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL);
+
+ host->clock = clock;
+
return 0;
}