]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: qcom: clear div mask before assigning a new divider
authorVolodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Mon, 11 Mar 2024 21:33:45 +0000 (21:33 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Apr 2024 15:46:45 +0000 (17:46 +0200)
commit054eb8774309636263cbf1a9f5f67f8c8412619c
tree2b0e4bf3dd852d814c59236e658485ed31c90ce1
parent86eb5d834d220893b5dc262c5aea7f933e275a4f
clk: qcom: clear div mask before assigning a new divider

The current behaviour does a bitwise OR of the previous and new
divider values, this is wrong as some bits may be set already. We
need to clear all the divider bits before applying new ones.

This fixes potential issue with 1Gbit ethernet on SA8155P-ADP boards.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
[caleb: minor wording fix]
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/clk/qcom/clock-qcom.c