usb: dwc3: core: allow device to runtime_suspend several times
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Jul 2016 10:07:07 +0000 (13:07 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 22 Aug 2016 07:45:11 +0000 (10:45 +0300)
commitb74c2d875baaa07186f617c5617f4c5e3a8a41ad
tree1b9bb2106f1e1c1294a6c820c2af7ed3a1a4cce8
parentf6c274e11e3b31a5f95c23962b1ba593bd6a4759
usb: dwc3: core: allow device to runtime_suspend several times

After going through runtime_suspend/runtime_resume
cycle once we would be left with an unbalanced
pm_runtime_get() call. Fix that by making sure that
we try to suspend right after resuming so things are
balanced and device can runtime_suspend again.

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