Files
u-boot/drivers
Sean Anderson 54d5d2d56b clk: k210: Fix checking if ulongs are less than 0
The PLL functions take ulong arguments for rate, but still check if that
rate is negative (which is never true). The correct way to handle this is
to use IS_ERR_VALUE (like is already done in k210_clk_set_rate). While
we're at it, we can move the error checking up into the caller of the pll
set/get rate functions.  This also protects our other calculations from
using bogus values for rate.

Fixes: 609bd60b94 ("clk: k210: Rewrite to remove CCF")
Reported-by: Coverity Scan <scan-admin@coverity.com>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2021-10-07 16:08:22 +08:00
..
2021-09-16 11:46:44 -04:00
2021-09-25 09:46:15 -06:00
2021-10-05 08:50:15 -04:00
2021-09-27 21:38:34 -04:00
2021-10-05 08:50:15 -04:00
2021-10-01 12:10:09 -04:00
2021-10-01 21:08:18 -04:00
2021-09-04 12:26:02 -04:00
2021-10-04 11:28:16 -04:00
2021-10-01 21:08:18 -04:00
2021-09-13 18:23:13 -04:00
2021-10-01 21:08:18 -04:00