]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: k210: Fix PLL enable always getting taken
authorSean Anderson <seanga2@gmail.com>
Fri, 9 Apr 2021 02:13:05 +0000 (22:13 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 14 May 2021 08:20:47 +0000 (16:20 +0800)
commit598a06dcb47db8101a19d26c0d65572fbe8e71f6
treee2349affcf48fe8f903f7703506551963ea7de9a
parentd0686a02b98ee264532c25108edc3ba44acc1145
clk: k210: Fix PLL enable always getting taken

This conditional always evaluated as false, regardless of the value of reg.
Fix it so that it properly tests the bits in the PLL register. Also test
PLL_EN, now that we set it.

Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/kendryte/pll.c