Skip to content

Commit

Permalink
usb: core: Add PM runtime calls to usb_hcd_platform_shutdown
Browse files Browse the repository at this point in the history
[ Upstream commit 8ead7e817224d7832fe51a19783cb8fcadc79467 ]

If ohci-platform is runtime suspended, we can currently get an "imprecise
external abort" on reboot with ohci-platform loaded when PM runtime
is implemented for the SoC.

Let's fix this by adding PM runtime support to usb_hcd_platform_shutdown.

Signed-off-by: Tony Lindgren <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
tmlind authored and gregkh committed May 31, 2019
1 parent 090eb57 commit b62dfb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3033,6 +3033,9 @@ usb_hcd_platform_shutdown(struct platform_device *dev)
{
struct usb_hcd *hcd = platform_get_drvdata(dev);

/* No need for pm_runtime_put(), we're shutting down */
pm_runtime_get_sync(&dev->dev);

if (hcd->driver->shutdown)
hcd->driver->shutdown(hcd);
}
Expand Down

0 comments on commit b62dfb5

Please sign in to comment.