Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 77a6180c authored by Odelu Kukatla's avatar Odelu Kukatla
Browse files

clk: qcom: Use regmap_update_bits() to update the clock flags



Currently clk_cbcr_set_flags() reads the CBCR register content,
modifies the flags and writes back the updated value into it.
Sometimes clk_set_flags() gets invoked for the same clock
while clk_enable() is in progress causing the CLK_ENABLE bit
getting updated outside of clk_enable() path. Therefore, use
regmap_update_bits() to update the flags in CBCR register.
Also add a barrier in clock enable/disable path to make
sure that register write goes through.

Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885dfc
Signed-off-by: default avatarOdelu Kukatla <okukatla@codeaurora.org>
parent 35ae9706
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment