linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/4] clk: imx8m: fix glitch/mux
@ 2019-09-09  3:39 Peng Fan
  2019-09-09  3:39 ` [PATCH V3 1/4] clk: imx: pll14xx: avoid glitch when set rate Peng Fan
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Peng Fan @ 2019-09-09  3:39 UTC (permalink / raw)
  To: mturquette, sboyd, shawnguo, s.hauer, festevam
  Cc: kernel, dl-linux-imx, Anson Huang, Jacky Bai, Abel Vesa,
	linux-clk, linux-arm-kernel, linux-kernel, Leonard Crestez,
	Peng Fan

From: Peng Fan <peng.fan@nxp.com>

V3:
 Add cover-letter

V2:
 Added patch [2,3,4]/4 and avoid glitch when prepare

There is two bypass bit in the pll, BYPASS and EXT_BYPASS.
There is also a restriction that to avoid glitch, need set BYPASS
bit when RESETB changed from 0 to 1, otherwise there will be glitch.

However the BYPASS bit is also used as mux bit in imx8mm/imx8mn clk driver.

This means two paths touch the same bit which is wrong. So switch to use
EXT_BYPASS bit as the mux.

Peng Fan (4):
  clk: imx: pll14xx: avoid glitch when set rate
  clk: imx: clk-pll14xx: unbypass PLL by default
  clk: imx: imx8mm: fix pll mux bit
  clk: imx: imx8mn: fix pll mux bit

 drivers/clk/imx/clk-imx8mm.c  | 32 ++++++++++----------------------
 drivers/clk/imx/clk-imx8mn.c  | 32 ++++++++++----------------------
 drivers/clk/imx/clk-pll14xx.c | 27 ++++++++++++++++++++++++++-
 3 files changed, 46 insertions(+), 45 deletions(-)

-- 
2.16.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-09-18  6:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09  3:39 [PATCH V3 0/4] clk: imx8m: fix glitch/mux Peng Fan
2019-09-09  3:39 ` [PATCH V3 1/4] clk: imx: pll14xx: avoid glitch when set rate Peng Fan
2019-09-18  6:07   ` Stephen Boyd
2019-09-09  3:39 ` [PATCH V3 2/4] clk: imx: clk-pll14xx: unbypass PLL by default Peng Fan
2019-09-18  6:07   ` Stephen Boyd
2019-09-09  3:39 ` [PATCH V3 3/4] clk: imx: imx8mm: fix pll mux bit Peng Fan
2019-09-18  6:07   ` Stephen Boyd
2019-09-09  3:39 ` [PATCH V3 4/4] clk: imx: imx8mn: " Peng Fan
2019-09-18  6:07   ` Stephen Boyd
2019-09-17  6:20 ` [PATCH V3 0/4] clk: imx8m: fix glitch/mux Peng Fan
2019-09-17 16:28   ` Stephen Boyd
2019-09-18  5:45     ` Peng Fan
2019-09-18  5:53       ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).