]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: sunxi-ng: d1: Fix PLL_AUDIO0 preset
authorAndre Przywara <andre.przywara@arm.com>
Tue, 1 Oct 2024 10:50:16 +0000 (11:50 +0100)
committerChen-Yu Tsai <wens@csie.org>
Sat, 2 Nov 2024 11:19:47 +0000 (19:19 +0800)
commite0f253a52ccee3cf3eb987e99756e20c68a1aac9
treea4c5a3580d61f63c6047025c4f6b402a76ce2e8e
parentc7e09a613bbddd0eea086e475855aba3b2410148
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: 35b97bb94111 ("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>
drivers/clk/sunxi-ng/ccu-sun20i-d1.c