summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDanny Segal <dsegal@codeaurora.org>2014-07-28 18:08:33 +0300
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:02:44 -0700
commit190c05e664e74320bbf416dfcee4e227440eef1e (patch)
treedddf78c8d515d97377edf7d94d43ceda5bca5d55 /include
parent4571803aa1530b3fdfae0e8b1ad0e5df4372d873 (diff)
usb: gadget: Fix race condition between function wakeup and bus resume
When a SS-USB function wishes to wake up the USB bus, it needs to send a SS-USB function wakeup notification to the USB host after the bus is resumed. For this purpose a function wake up pending flag is used to notify the resume callback that a function wake up notification needs to be sent. However, sometimes there is a race condition in which the resume interrupt is fired before the function wakeup function is complete, and this leads to an incorrect state of the function wakeup pending flag. This patch resolves this issue by adding locks in the critical sections. CRs-fixed: 695399 Change-Id: I8f15ac0c433301d6364a49cb31577e30259aa0b9 Signed-off-by: Danny Segal <dsegal@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions