usb: dwc3: Don't reinitialize core during host bus-suspend/resume
authorManu Gautam <mgautam@codeaurora.org>
Wed, 27 Sep 2017 11:19:20 +0000 (16:49 +0530)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:57 +0000 (14:52 -0500)
commitccf5725be51a348e2e2f630f38558c0d83b7c83a
tree410fff3634a8ec478cc62020630b932c5e76f889
parent5acfa8528430a635038a4b9054ce7fe80f0ccd3c
usb: dwc3: Don't reinitialize core during host bus-suspend/resume

Driver powers-off PHYs and reinitializes DWC3 core and gadget on
resume. While this works fine for gadget mode but in host
mode there is not re-initialization of host stack. Also, resetting
bus as part of bus_suspend/resume is not correct which could affect
(or disconnect) connected devices.
Fix this by not reinitializing core on suspend/resume in host mode
for HOST only and OTG/drd configurations.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 689bf72c6e0dc97493ba14d82f6762456f8f244a)
drivers/usb/dwc3/core.c