summaryrefslogtreecommitdiff
path: root/include/linux/mmdebug.h
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2014-02-13 18:33:50 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:06:21 -0700
commit0b937c189f0218bcbee4ceeec090d43237e93b13 (patch)
tree81b705623f8f84ecc82f59be3afccb050416dd7e /include/linux/mmdebug.h
parent88f0a435936cbe509b29b801e83cab2b75020e30 (diff)
usb: dwc3: gadget: Ensure core is not suspended when handling interrupt
Since dwc3_thread_interrupt is part of interrupt handling that can be scheduled to run in thread context, it leaves open a window in which the controller might be placed into low power mode. In this state, clocks would be disabled, and by the time dwc3_thread_interrupt runs, would result in an unclocked I/O access when it tries to write to the GEVNTCOUNT register. Prevent this by calling pm_runtime_get() in dwc3_interrupt() in order to force the device to remain in active state, which increments the parent device's child count so that it too is prevented from entering suspend. Call pm_runtime_put() at the end of dwc3_thread_interrupt() after finishing processing the event buffers. CRs-fixed: 609233 CRs-fixed: 622850 Change-Id: Ia21c9ac74d74833a889081f41c93acec2a7ae011 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'include/linux/mmdebug.h')
0 files changed, 0 insertions, 0 deletions