mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 01:06:48 +07:00
usb: dwc3: omap: fix ordering for runtime pm calls
we don't to gate clocks until our children are
done with their remove path.
Fixes: af310e9
(usb: dwc3: omap: use runtime API's to enable clocks)
Cc: <stable@vger.kernel.org> # v3.9+
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
dc99f16f07
commit
81a60b7f5c
@ -576,9 +576,9 @@ static int dwc3_omap_remove(struct platform_device *pdev)
|
|||||||
if (omap->extcon_id_dev.edev)
|
if (omap->extcon_id_dev.edev)
|
||||||
extcon_unregister_interest(&omap->extcon_id_dev);
|
extcon_unregister_interest(&omap->extcon_id_dev);
|
||||||
dwc3_omap_disable_irqs(omap);
|
dwc3_omap_disable_irqs(omap);
|
||||||
|
device_for_each_child(&pdev->dev, NULL, dwc3_omap_remove_core);
|
||||||
pm_runtime_put_sync(&pdev->dev);
|
pm_runtime_put_sync(&pdev->dev);
|
||||||
pm_runtime_disable(&pdev->dev);
|
pm_runtime_disable(&pdev->dev);
|
||||||
device_for_each_child(&pdev->dev, NULL, dwc3_omap_remove_core);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user