Skip to content

Commit b99e0ba

Browse files
tmlindvinodkoul
authored andcommitted
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: f7f50b2 ("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]>
1 parent 7196061 commit b99e0ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/phy/motorola/phy-mapphone-mdm6600.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ static void phy_mdm6600_remove(struct platform_device *pdev)
641641
struct phy_mdm6600 *ddata = platform_get_drvdata(pdev);
642642
struct gpio_desc *reset_gpio = ddata->ctrl_gpios[PHY_MDM6600_RESET];
643643

644+
pm_runtime_get_noresume(ddata->dev);
644645
pm_runtime_dont_use_autosuspend(ddata->dev);
645646
pm_runtime_put_sync(ddata->dev);
646647
pm_runtime_disable(ddata->dev);

0 commit comments

Comments
 (0)