summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTarun Gupta <tarung@codeaurora.org>2015-06-10 19:28:49 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:07:08 -0700
commit8d8d2bea771e1ecef2ea1cb136088e72053c9067 (patch)
tree89281c7d34dde62ba36874893e8e4c98fea8ec45 /include/linux
parent2c455f7be19ae4deb0884cef204746b386a7e199 (diff)
usb: dwc3: gadget: Avoid unclocked access due to pm_runtime_get failure
If remote wakeup request is received during system resume where resume_early is still processing, pm_runtime_get_sync returns -EACCES error as pm_runtime framework is disabled between late_suspend and early_resume. Due to failure of this API controller did not exit LPM. This leads to unclocked access of registers as part of remote wakeup processing causing target to crash. Fix this by checking for return value of pm_runtime_get_sync, and queuing dwc3_gadget_wakeup_work again with intermediate delay of 100ms for maximum of 20 times. Change-Id: I8e2215ef9ee708e86356622e85fd2f23a18f7944 Signed-off-by: Tarun Gupta <tarung@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions