clk: qcom: camcc: Enable safe config and HW_CTL for all RCGs
Enable the HW_CTL bit to fix a well-known race condition where the RCG may
hang due to an enable and an update occurring at the same time (according
to clklib documents, the behavior is undefined when this condition occurs,
but typically results in a hung RCG). The HW_CTL bit specifically enables
dynamic switching on the RCG which force enables the RCG and sources before
attempting to update its source/config. Due to a growing number of hardware
enable signals (on some branch downstream) that may enable RCGs unbeknownst to
the clock driver, enabling HW_CTL and using safe config should make interactions
during clock switches safer by forcing dynamic switches even when the clock is
off and ensuring that we're working from a safe source (XO).
Change-Id: I3ced61046bcd792462cb1148c60675aba854629f
Signed-off-by:
David Dai <daidavid1@codeaurora.org>
Loading
Please register or sign in to comment