]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1981bbc946ef2d22fc2e9c8048ea47512ca9ac2f
tree1b9bb2106f1e1c1294a6c820c2af7ed3a1a4cce8
parent5116dbfd8b55590c7639ad40b4a44686e9b8f34d
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