]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/usb/dwc3/gadget.c
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:30:04 +0000 (12:30 +0300)
commit9f8a67b65a49d0e35c6ca782136c84541d948a64
tree300dd24af3e0d5d534737f6e2acdcc955be7c9be
parentd7be295243bbe53649986d869b398403eaa41bb7
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.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c