Skip to content
Commit eae80e71 authored by Timo Alho's avatar Timo Alho Committed by Greg Kroah-Hartman
Browse files

clk: tegra: fix error return case for recalc_rate

[ Upstream commit a47b44fb ]

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: ca6f2796

 ("clk: tegra: Add BPMP clock driver")
Signed-off-by: default avatarTimo Alho <talho@nvidia.com>
Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Link: https://lore.kernel.org/r/20230912112951.2330497-1-cyndis@kapsi.fi
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 023552d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment