Commit 2f2b73a2 authored by Rashmi A's avatar Rashmi A Committed by Ulf Hansson

phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP

Since the EMMC clock was changed from 200Mhz to 175Mhz in FIP,
there were some warnings introduced, as the frequency values
being checked was still wrt 200Mhz in code. Hence, the frequency
checks are now updated based on the current 175Mhz EMMC clock changed
in FIP.

Spamming kernel log msg:
"phy phy-20290000.mmc_phy.2: Unsupported rate: 43750000"
Signed-off-by: default avatarRashmi A <rashmi.a@intel.com>
Reviewed-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Acked-By: default avatarVinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210603182242.25733-3-rashmi.a@intel.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b2af3227
......@@ -95,7 +95,8 @@ static int keembay_emmc_phy_power(struct phy *phy, bool on_off)
else
freqsel = 0x0;
if (mhz < 50 || mhz > 200)
/* Check for EMMC clock rate*/
if (mhz > 175)
dev_warn(&phy->dev, "Unsupported rate: %d MHz\n", mhz);
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment