aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2020-02-25 14:42:48 +0100
committerStephen Boyd <[email protected]>2020-02-28 10:57:03 -0800
commitc3944ec8c6df256ab480b56cb776f36df44b2ba5 (patch)
tree994adeebf818968bb3713e5a77fd5633a55cc0e8 /tools/perf/scripts/python/exported-sql-viewer.py
parent2760878662a290ac57cff8a5a8d8bda8f4dddc37 (diff)
clk: Fix phase init check
Commit 2760878662a2 ("clk: Bail out when calculating phase fails during clk registration") introduced a check on error values at the time the clock is registered to bail out when such an error occurs. However, it doesn't check whether the returned value is positive which will happen if the driver returns a non-zero phase. Since a phase is usually a non-zero positive number this ends up returning something that isn't 0 to the caller of __clk_core_init(), making most clks fail to register if they implement a phase clk op and return anything besides 0 for the phase. Fix this by returning the error if phase is less than zero or just return zero if the phase is a positive number. Fixes: 2760878662a2 ("clk: Bail out when calculating phase fails during clk registration") Signed-off-by: Maxime Ripard <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reported-by: "kernelci.org bot" <[email protected]> [[email protected]: Reword commit text to provide clarity] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions