diff options
author | Rashmi A <rashmi.a@intel.com> | 2021-06-03 23:52:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:00:22 +0200 |
commit | af6365ae0991c304387cc0297beb55974f67a29f (patch) | |
tree | 8f8e40a9a7d1cf286786164ae8cb4f14dfea6a99 | |
parent | e00d3efd53d0f9f63cd73b4bbf8888da944e1983 (diff) | |
download | linux-stable-af6365ae0991c304387cc0297beb55974f67a29f.tar.gz linux-stable-af6365ae0991c304387cc0297beb55974f67a29f.tar.bz2 linux-stable-af6365ae0991c304387cc0297beb55974f67a29f.zip |
phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP
[ Upstream commit 2f2b73a29d2aabf5ad0150856c3e5cb6e04dcfc1 ]
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: Rashmi A <rashmi.a@intel.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210603182242.25733-3-rashmi.a@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/phy/intel/phy-intel-keembay-emmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/intel/phy-intel-keembay-emmc.c b/drivers/phy/intel/phy-intel-keembay-emmc.c index eb7c635ed89a..0eb11ac7c2e2 100644 --- a/drivers/phy/intel/phy-intel-keembay-emmc.c +++ b/drivers/phy/intel/phy-intel-keembay-emmc.c @@ -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); /* |