Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ebe1703a authored by Felipe Balbi's avatar Felipe Balbi Committed by Stephen Boyd
Browse files

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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Git-commit: 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git


Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 5aa70c22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment