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>
This commit is contained in:
parent
2a62bae8ce
commit
31044c33de
|
|
@ -389,6 +389,9 @@ static int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
|
||||||
|
|
||||||
clk |= SDHCI_CLOCK_CARD_EN;
|
clk |= SDHCI_CLOCK_CARD_EN;
|
||||||
sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL);
|
sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL);
|
||||||
|
|
||||||
|
host->clock = clock;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue