OSDN Git Service

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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Oct 2017 09:51:19 +0000 (12:51 +0300)
commit689bf72c6e0dc97493ba14d82f6762456f8f244a
treeb59b875cbf81f79dbdb9994e11152e6f5c93757a
parentce035409bfa892a2fabb89720b542e1b335c3426
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>
drivers/usb/dwc3/core.c