aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-03-01 02:46:11 +0000
committerVinod Koul <[email protected]>2022-04-14 05:08:39 +0000
commitd644e0d79829b1b9a14beedbdb0dc1256fc3677d (patch)
tree719718d7064437d3f97db04b379e963a4d234fe6 /tools/perf/scripts/python/libxed.py
parentphy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks (diff)
downloadkernel-d644e0d79829b1b9a14beedbdb0dc1256fc3677d.tar.gz
kernel-d644e0d79829b1b9a14beedbdb0dc1256fc3677d.zip
phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe
The pm_runtime_enable will increase power disable depth. If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). And use pm_runtime_dont_use_autosuspend() to undo pm_runtime_use_autosuspend() In the PM Runtime docs: Drivers in ->remove() callback should undo the runtime PM changes done in ->probe(). Usually this means calling pm_runtime_disable(), pm_runtime_dont_use_autosuspend() etc. We should do this in error handling. Fixes: f7f50b2a7b05 ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend") Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions