All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: ti: Add missing pm_runtime_disable() in probe function
@ 2022-01-05  9:02 ` Miaoqian Lin
  0 siblings, 0 replies; 9+ messages in thread
From: Miaoqian Lin @ 2022-01-05  9:02 UTC (permalink / raw)
  Cc: linmq006, Kishon Vijay Abraham I, Vinod Koul, Randy Dunlap,
	Roger Quadros, linux-phy, linux-kernel

If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().
Add missing pm_runtime_disable() for serdes_am654_probe().

Fixes: 71e2f5c ("phy: ti: Add a new SERDES driver for TI's AM654x SoC")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
 drivers/phy/ti/phy-am654-serdes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/phy/ti/phy-am654-serdes.c b/drivers/phy/ti/phy-am654-serdes.c
index c1211c4f863c..b77ef9e0e0c7 100644
--- a/drivers/phy/ti/phy-am654-serdes.c
+++ b/drivers/phy/ti/phy-am654-serdes.c
@@ -838,7 +838,8 @@ static int serdes_am654_probe(struct platform_device *pdev)
 
 clk_err:
 	of_clk_del_provider(node);
-
+err_pm_disable:
+	pm_runtime_disable(dev);
 	return ret;
 }
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-13 10:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05  9:02 [PATCH] phy: ti: Add missing pm_runtime_disable() in probe function Miaoqian Lin
2022-01-05  9:02 ` Miaoqian Lin
2022-01-05 14:16 ` kernel test robot
2022-01-05 14:16   ` kernel test robot
2022-01-05 14:16   ` kernel test robot
2022-03-01  2:58 ` [PATCH v2] phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe Miaoqian Lin
2022-03-01  2:58   ` Miaoqian Lin
2022-04-13 10:55   ` Vinod Koul
2022-04-13 10:55     ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.