]> git.baikalelectronics.ru Git - uboot.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)
commite6717ddce3dc21b9b14dd7796ea4680e7a8a72ff
treee2349affcf48fe8f903f7703506551963ea7de9a
parent10b28c250c2f30f47a0177ad16f43c412d9e32ac
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