From: Nan Li Date: Mon, 3 Sep 2018 08:01:36 +0000 (+0800) Subject: emmc: optimize emmc clk set suspend & resume. X-Git-Tag: khadas-vims-v0.9.6-release~1457 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25584b300dec2412de2889617f98419ccac0de90;p=platform%2Fkernel%2Flinux-amlogic.git emmc: optimize emmc clk set suspend & resume. PD#173040: optimize clk set suspend & resume. Change-Id: I1f3b826f30db382178faa0293f2ba019525e6dec Signed-off-by: Nan Li --- diff --git a/drivers/amlogic/mmc/aml_sd_emmc_v3.c b/drivers/amlogic/mmc/aml_sd_emmc_v3.c index 7e79f87..d8ef463 100644 --- a/drivers/amlogic/mmc/aml_sd_emmc_v3.c +++ b/drivers/amlogic/mmc/aml_sd_emmc_v3.c @@ -171,7 +171,7 @@ static int meson_mmc_clk_set_rate_v3(struct mmc_host *mmc, host->mux_parent[0]); if (ret) pr_warn("set comp0 as mux_clk parent error\n"); - } else if (clk_get_rate(host->mux_parent[0]) == 400000000) { + } else if (clk_get_rate(host->mux_parent[0]) > 200000000) { pr_info("%s %d\n", __func__, __LINE__); src0_clk = devm_clk_get(host->dev, "xtal"); ret = clk_set_parent(host->mux_parent[0], src0_clk);