OSDN Git Service

usb: dwc3: gadget: allow running wakeup in delayed context
authorBar Weiner <bweiner@codeaurora.org>
Tue, 13 May 2014 12:45:00 +0000 (15:45 +0300)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:32 +0000 (11:06 -0700)
commitfb759c47581e828a627ee9a4b4cabaa483988f31
treeb08a046298cb49584484b1efb18027808415b211
parent567c83ebc7e73ea9dde355fa52e03be13e45d43f
usb: dwc3: gadget: allow running wakeup in delayed context

Adding the option of running the gadget wakeup function
from the context in which it is called, or delaying it - in case
it is called from an atomic context. This is required in order
to support a case where the gadget is in lpm and the wakeup
would result in a queue to the low-powered hardware.

Change-Id: I09fc60e75c79202c97251146aab1539de3307424
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
Signed-off-by: Danny Segal <dsegal@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c