diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-09-09 03:39:34 +0000 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-09-17 22:53:34 -0700 |
commit | dee1bc9c23cd41fe32549c0adbe6cb57cab02282 (patch) | |
tree | 89446415db3fa7640019dc1d218fd004574ba3c2 /net/ipv4/tcp_ipv4.c | |
parent | 9ea67d14a87c4901a6d1cc26110cb721690a9388 (diff) | |
download | linux-dee1bc9c23cd41fe32549c0adbe6cb57cab02282.tar.bz2 |
clk: imx: pll14xx: avoid glitch when set rate
According to PLL1443XA and PLL1416X spec,
"When BYPASS is 0 and RESETB is changed from 0 to 1, FOUT starts to
output unstable clock until lock time passes. PLL1416X/PLL1443XA may
generate a glitch at FOUT."
So set BYPASS when RESETB is changed from 0 to 1 to avoid glitch.
In the end of set rate, BYPASS will be cleared.
When prepare clock, also need to take care to avoid glitch. So
we also follow Spec to set BYPASS before RESETB changed from 0 to 1.
And add a check if the RESETB is already 0, directly return 0;
Fixes: 8646d4dcc7fb ("clk: imx: Add PLLs driver for imx8mm soc")
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lkml.kernel.org/r/1568043491-20680-2-git-send-email-peng.fan@nxp.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions