UPSTREAM: usb: dwc3: gadget: fix gadget suspend/resume
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 4 May 2016 12:50:27 +0000 (15:50 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitd1fce309c180f793bf287ce26eca1e0cc830a8d4
tree146df0c31be2a35bdb008257291e24977df249e7
parent48947f22bcd5af86c9edf12e21be8eec7978fe67
UPSTREAM: usb: dwc3: gadget: fix gadget suspend/resume

Instead of trying hard to stay connected to the
host, it's best (and far easier) to disconnect from
the host already.

Anything relying on KEEP_CONNECT will just have that
ignored, but we don't have proper hibernation
implementation yet, so there are no regressions.

In any case, hibernation is only useful for runtime
PM, not system sleep.

While at that, also remove dwc3.dcfg which has been
rendered unnecessary.

Change-Id: I605a452a416b3a2e2b98b6b6505ecc545846d5dd
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 9f8a67b65a49d0e35c6ca782136c84541d948a64)
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c