clk: ingenic: Add .set_rate_hook() for PLL clocks
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Wed, 26 Oct 2022 19:43:42 +0000 (20:43 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 27 Oct 2022 18:59:05 +0000 (11:59 -0700)
commitc799a77720dd350fd742a99d80139514a0b4df4d
tree1014708eb544874800f81c1a3208ae80efeff800
parentd84bf9d6308e2606b60bb5b4577f8b9ac295cf0b
clk: ingenic: Add .set_rate_hook() for PLL clocks

The set rate hook is called immediately after updating the clock
register but before the spinlock is released. This allows another
register to be updated alongside the main one, which is needed to
handle the I2S divider on some SoCs.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20221026194345.243007-4-aidanmacdonald.0x0@gmail.com
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c
drivers/clk/ingenic/cgu.h