diff options
author | Grygorii Strashko <[email protected]> | 2016-12-06 18:00:36 -0600 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-12-07 11:13:46 -0500 |
commit | fd123a9414766e73fa704547e7f03595741b7de1 (patch) | |
tree | 97211277028a4eeb31860690c9dfcb01726084b7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b63ba58ee9957261b39209f3031ff06714cf13cb (diff) |
net: ethernet: ti: cpts: fix unbalanced clk api usage in cpts_register/unregister
There are two issues with TI CPTS code which are reproducible when TI
CPSW ethX device passes few up/down iterations:
- cpts refclk prepare counter continuously incremented after each
up/down iteration;
- devm_clk_get(dev, "cpts") is called many times.
Hence, fix these issues by using clk_disable_unprepare() in
cpts_clk_release() and skipping devm_clk_get() if cpts refclk has been
acquired already.
Signed-off-by: Grygorii Strashko <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions