Skip to content

Commit e0f253a

Browse files
Andre-ARMwens
authored andcommitted
clk: sunxi-ng: d1: Fix PLL_AUDIO0 preset
To work around a limitation in our clock modelling, we try to force two bits in the AUDIO0 PLL to 0, in the CCU probe routine. However the ~ operator only applies to the first expression, and does not cover the second bit, so we end up clearing only bit 1. Group the bit-ORing with parentheses, to make it both clearer to read and actually correct. Fixes: 35b97bb ("clk: sunxi-ng: Add support for the D1 SoC clocks") Signed-off-by: Andre Przywara <andre.przywara@arm.com> Link: https://patch.msgid.link/20241001105016.1068558-1-andre.przywara@arm.com Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent c7e09a6 commit e0f253a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun20i-d1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ static int sun20i_d1_ccu_probe(struct platform_device *pdev)
13711371

13721372
/* Enforce m1 = 0, m0 = 0 for PLL_AUDIO0 */
13731373
val = readl(reg + SUN20I_D1_PLL_AUDIO0_REG);
1374-
val &= ~BIT(1) | BIT(0);
1374+
val &= ~(BIT(1) | BIT(0));
13751375
writel(val, reg + SUN20I_D1_PLL_AUDIO0_REG);
13761376

13771377
/* Force fanout-27M factor N to 0. */

0 commit comments

Comments
 (0)