diff options
author | Nikita Travkin <[email protected]> | 2022-06-12 19:59:53 +0500 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2022-06-30 22:34:13 -0500 |
commit | d0696770cef35a1fd16ea2167e2198c18aa6fbfe (patch) | |
tree | cfb7fd061e86bfbc052faaa7253bdb2888510be8 /lib/mpi/mpi-mod.c | |
parent | bdafb609c3bb848d710ad9cd4debd2ee9d6a4049 (diff) |
clk: qcom: clk-rcg2: Make sure to not write d=0 to the NMD register
Sometimes calculation of d value may result in 0 because of the
rounding after integer division. This causes the following error:
[ 113.969689] camss_gp1_clk_src: rcg didn't update its configuration.
[ 113.969754] WARNING: CPU: 3 PID: 35 at drivers/clk/qcom/clk-rcg2.c:122 update_config+0xc8/0xdc
Make sure that D value is never zero.
Fixes: 7f891faf596e ("clk: qcom: clk-rcg2: Add support for duty-cycle for RCG")
Signed-off-by: Nikita Travkin <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions