Re: [PATCH] clk: tegra: fix error return case for recalc_rate

From: Stephen Boyd
Date: Tue Sep 12 2023 - 13:58:39 EST


Quoting Mikko Perttunen (2023-09-12 04:29:50)
> From: Timo Alho <talho@xxxxxxxxxx>
>
> tegra-bpmp clocks driver makes implicit conversion of signed error
> code to unsigned value in recalc_rate operation. The behavior for
> recalc_rate, according to it's specification, should be that "If the
> driver cannot figure out a rate for this clock, it must return 0."
>
> Fixes: ca6f2796eef7 ("clk: tegra: Add BPMP clock driver")
> Signed-off-by: Timo Alho <talho@xxxxxxxxxx>
> Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
> ---

Applied to clk-fixes