From: Axel Haslam Date: Thu, 24 Nov 2016 10:50:56 +0000 (+0100) Subject: USB: ohci: da8xx: Resume the entire host controller X-Git-Tag: v4.10-rc1~150^2~28 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=640308b72f7d2afe4c85c9191f82bc0ef33ea243;p=linux.git 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: Alan Stern Signed-off-by: Axel Haslam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 9e336f4085f2..05da2cb59612 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -528,8 +528,7 @@ static int ohci_da8xx_resume(struct platform_device *dev) if (ret) return ret; - dev->dev.power.power_state = PMSG_ON; - usb_hcd_resume_root_hub(hcd); + ohci_resume(hcd, false); return 0; }