]> git.baikalelectronics.ru Git - uboot.git/commit
clk: rockchip: rk3308: Fix ordering between masking and shifting
authorMassimo Pegorer <massimo.pegorer+oss@gmail.com>
Thu, 3 Aug 2023 11:08:11 +0000 (13:08 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:37:57 +0000 (10:37 +0800)
commit268f4cda9eb40b14bae0209b1040d6a92630a332
tree3fcae2f77e2e2668f4e0f328a80448e03b7e1914
parent0232739547ca872eb980041754134f7044c05456
clk: rockchip: rk3308: Fix ordering between masking and shifting

As per definitions of masks and shift offsets in cru_rk3308.h, values
read from registers must be first masked and then shifted. By the way,
this fix is binary invariant, because in all of fixed cases the shift
offset is zero.

Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3308.c