mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
clk: tegra: fix error return case for recalc_rate
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." Bug 3640397 Bug 4090576 Signed-off-by: Timo Alho <talho@nvidia.com> Change-Id: I96cfbe466351fde035e0de6aeae1b9e6d929cec4 Reviewed-on: https://git-master.nvidia.com/r/c/linux-stable/+/2975580 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2977080 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
97835cded8
commit
320dee5c7d
@@ -159,7 +159,7 @@ static unsigned long tegra_bpmp_clk_recalc_rate(struct clk_hw *hw,
|
||||
|
||||
err = tegra_bpmp_clk_transfer(clk->bpmp, &msg);
|
||||
if (err < 0)
|
||||
return err;
|
||||
return 0;
|
||||
|
||||
return response.rate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user