]> git.baikalelectronics.ru Git - kernel.git/commit
clk: si5351: Wait for bit clear after PLL reset
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 30 Nov 2020 09:10:33 +0000 (10:10 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 19 Dec 2020 23:49:54 +0000 (15:49 -0800)
commit5142cbcea324909be03b176540c0c2f3975922b4
tree9c3b0cb6b31c484723535ac3112000ad066b831c
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
clk: si5351: Wait for bit clear after PLL reset

Documentation states that SI5351_PLL_RESET_B and SI5351_PLL_RESET_A bits
are self clearing bits, so wait until they are cleared before
continuing.
This fixes a case when the clock doesn't come up properly after a PLL
reset. It worked properly when the frequency was below 900MHz, but with
900MHz it only works when we are waiting for the bit to clear.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20201130091033.1687-1-s.hauer@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-si5351.c