diff options
author | Tony Lindgren <[email protected]> | 2023-09-13 09:04:28 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-09-14 17:05:27 +0530 |
commit | b99e0ba9633af51638e5ee1668da2e33620c134f (patch) | |
tree | 6615513c2ae41e48c0b696865731629c40010df0 | |
parent | 719606154c7033c068a5d4c1dc5f9163b814b3c8 (diff) |
phy: mapphone-mdm6600: Fix runtime PM for remove
Otherwise we will get an underflow on remove.
Cc: Ivaylo Dimitrov <[email protected]>
Cc: Merlijn Wajer <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Fixes: f7f50b2a7b05 ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend")
Signed-off-by: Tony Lindgren <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r-- | drivers/phy/motorola/phy-mapphone-mdm6600.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/motorola/phy-mapphone-mdm6600.c b/drivers/phy/motorola/phy-mapphone-mdm6600.c index 0147112f77b1..df48b1becebe 100644 --- a/drivers/phy/motorola/phy-mapphone-mdm6600.c +++ b/drivers/phy/motorola/phy-mapphone-mdm6600.c @@ -641,6 +641,7 @@ static void phy_mdm6600_remove(struct platform_device *pdev) struct phy_mdm6600 *ddata = platform_get_drvdata(pdev); struct gpio_desc *reset_gpio = ddata->ctrl_gpios[PHY_MDM6600_RESET]; + pm_runtime_get_noresume(ddata->dev); pm_runtime_dont_use_autosuspend(ddata->dev); pm_runtime_put_sync(ddata->dev); pm_runtime_disable(ddata->dev); |