greybus: svc: Handle hotplug request from a workqueue
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 6 Aug 2015 07:14:55 +0000 (12:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 11 Aug 2015 00:29:27 +0000 (17:29 -0700)
commit067906f6906922ad784452218b09bfb2b9519643
treeab84f59746abb525997924d9bd4fb162341bb355
parent6d05ad3c4226024ad78dfbd2ab683b760ab56389
greybus: svc: Handle hotplug request from a workqueue

Bringing up a module can be time consuming, as that may require lots of
initialization on the module side. Over that, we may also need to
download the firmware first and flash that on the module.

In order to make other hotplug events to not wait for all this to
finish, handle most of module hotplug stuff outside of the hotplug
callback, with help of a workqueue.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c