Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74005a01 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ulf Hansson
Browse files

mmc: tmio: replace tmio_mmc_clk_stop() calls with tmio_mmc_set_clock()



tmio_mmc_clk_stop(host) is equivalent to tmio_mmc_set_clock(host, 0).
This replacement is needed for the next commit.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent a0c938b5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1040,7 +1040,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
	switch (ios->power_mode) {
	case MMC_POWER_OFF:
		tmio_mmc_power_off(host);
		tmio_mmc_clk_stop(host);
		tmio_mmc_set_clock(host, 0);
		break;
	case MMC_POWER_UP:
		tmio_mmc_power_on(host, ios->vdd);
@@ -1307,7 +1307,7 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
	if (pdata->flags & TMIO_MMC_SDIO_IRQ)
		_host->sdio_irq_mask = TMIO_SDIO_MASK_ALL;

	tmio_mmc_clk_stop(_host);
	tmio_mmc_set_clock(_host, 0);
	tmio_mmc_reset(_host);

	_host->sdcard_irq_mask = sd_ctrl_read16_and_16_as_32(_host, CTL_IRQ_MASK);
@@ -1391,7 +1391,7 @@ int tmio_mmc_host_runtime_suspend(struct device *dev)
	tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL);

	if (host->clk_cache)
		tmio_mmc_clk_stop(host);
		tmio_mmc_set_clock(host, 0);

	tmio_mmc_clk_disable(host);