diff options
| author | Akash Sukhavasi <akash.sukhavasi@gmail.com> | 2026-07-08 16:31:00 -0500 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-10-03 10:31:13 +0200 |
| commit | 7540fc0a4f667b6773d10753a602a42a3113087b (patch) | |
| tree | 12e310cbb4f7df31a0e378e274e3ed166ced68e5 /tools/perf/scripts/python/bin | |
| parent | c7f2322431cb6d108b18fb4154606b49e2bc50f7 (diff) | |
phy: HiSilicon: Fix error handling in hi3670_pcie_allclk_ctrl()
When hi3670_pcie_pll_ctrl() fails, hi3670_pcie_allclk_ctrl() returns
-EINVAL directly, skipping the close_clocks cleanup path. This leaves
the PLL with its power-down bit cleared.
Use goto close_clocks instead, which disables the PLL and propagates
the original error code from hi3670_pcie_pll_ctrl().
Found while investigating a Smatch warning.
Fixes: 73075011ffff ("phy: HiSilicon: Add driver for Kirin 970 PCIe PHY")
Signed-off-by: Akash Sukhavasi <akash.sukhavasi@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260708-b4-hi3670-v1-1-f9236f3e585c@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
