diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-08-03 23:15:17 +0800 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-08-06 21:34:42 +0530 |
| commit | 8b2683bc4cc18c581b7cd24f227cbe61abca7f4d (patch) | |
| tree | cdb66751cc543a68ffb49e8085471dbfd3ddc76d /tools/perf/scripts/python/task-analyzer.py | |
| parent | b780b8929c759cfa7a892d58625a5ad46cb1cbd2 (diff) | |
phy: sunplus: fix error handling in sp_uphy_init()
Fix the error paths of sp_uphy_init() to undo exactly what each stage
did: return directly if clk_prepare_enable() fails, release only the clock
if reset_control_deassert() fails, and jump to err_reset if
update_disc_vol() fails so the clock and reset are not leaked.
Fixes: 99d9ccd97385 ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patch.msgid.link/20260803-sunplus-usb3-v1-1-5a562524c869@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
