Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <stern@rowland.harvard.edu>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Axel Haslam and committed by
Greg Kroah-Hartman
640308b7 190534f6

+1 -2
+1 -2
drivers/usb/host/ohci-da8xx.c
··· 528 528 if (ret) 529 529 return ret; 530 530 531 - dev->dev.power.power_state = PMSG_ON; 532 - usb_hcd_resume_root_hub(hcd); 531 + ohci_resume(hcd, false); 533 532 534 533 return 0; 535 534 }