Commit 640308b7 authored by Axel Haslam's avatar Axel Haslam Committed by Greg Kroah-Hartman

USB: ohci: da8xx: Resume the entire host controller

The da8xx ohci controller is not working after suspend and resume.

This is because only the root hub is being resumed.

Balance the ohci_suspend of the suspend path with an ohci_resume
in the resume path so that we resume the entire controller, and not
just the root hub.

Also, while we are here, remove setting device power_state,
as this is no longer needed and scheduled for removal
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarAxel Haslam <ahaslam@baylibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 190534f6
...@@ -528,8 +528,7 @@ static int ohci_da8xx_resume(struct platform_device *dev) ...@@ -528,8 +528,7 @@ static int ohci_da8xx_resume(struct platform_device *dev)
if (ret) if (ret)
return ret; return ret;
dev->dev.power.power_state = PMSG_ON; ohci_resume(hcd, false);
usb_hcd_resume_root_hub(hcd);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment