diff options
author | Felipe Balbi <balbi@ti.com> | 2013-07-17 11:09:49 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 13:57:02 +0300 |
commit | 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 (patch) | |
tree | 92a45aca9238a714ca0472436e3563e6033de1f6 /drivers/usb/dwc3 | |
parent | c75f52fb26aa9c10b3f5ee157bc0c6c8e8e9bb1a (diff) |
usb: gadget: udc-core: move sysfs_notify() to a workqueue
usb_gadget_set_state() will call sysfs_notify()
which might sleep. Some users might want to call
usb_gadget_set_state() from the very IRQ handler
which actually changes the gadget state.
Instead of having every UDC driver add their own
workqueue for such a simple notification, we're
adding it generically to our struct usb_gadget,
so the details are hidden from all UDC drivers.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions