From: Felipe Balbi Date: Wed, 17 Jul 2013 08:09:49 +0000 (+0300) Subject: usb: gadget: udc-core: move sysfs_notify() to a workqueue X-Git-Tag: v3.12-rc1~186^2~77^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed