[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220105123947.17946-1-linmq006@gmail.com>
Date: Wed, 5 Jan 2022 12:39:42 +0000
From: Miaoqian Lin <linmq006@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linmq006@...il.com, Kishon Vijay Abraham I <kishon@...com>,
Vinod Koul <vkoul@...nel.org>,
Tony Lindgren <tony@...mide.com>,
linux-phy@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] phy: mapphone-mdm6600: Fix PM disable depth imbalance 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().
Fixes: f7f50b2 ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend")
Signed-off-by: Miaoqian Lin <linmq006@...il.com>
---
drivers/phy/motorola/phy-mapphone-mdm6600.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/phy/motorola/phy-mapphone-mdm6600.c b/drivers/phy/motorola/phy-mapphone-mdm6600.c
index 5172971f4c36..14666750946c 100644
--- a/drivers/phy/motorola/phy-mapphone-mdm6600.c
+++ b/drivers/phy/motorola/phy-mapphone-mdm6600.c
@@ -630,6 +630,9 @@ static int phy_mdm6600_probe(struct platform_device *pdev)
if (error < 0)
phy_mdm6600_device_power_off(ddata);
+disable_pm:
+ pm_runtime_disable(ddata->dev);
+
return error;
}
--
2.17.1
Powered by blists - more mailing lists