usb: dwc2: host: sleep USB_RESUME_TIMEOUT during resume
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 3 Apr 2015 08:53:25 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Apr 2015 11:52:49 +0000 (13:52 +0200)
commit42a6630a875c17b8ad129d2cc0472217107147ad
treea6f4700885fc4dfd27b9f7db933d5d73f31753a4
parentb9cd825d066c911cd6076a539986bcf22f1cbcd7
usb: dwc2: host: sleep USB_RESUME_TIMEOUT during resume

msleep(USB_RESUME_TIMEOUT) must be done when the controller drives
the resume. This is true after HPRT0_RES is written.
Moreover, restore the delay after controller power is up.

Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd.c