libertas: add asynchronous firmware loading capability
As described at http://article.gmane.org/gmane.linux.kernel.wireless.general/86084 libertas is taking a long time to load because it loads firmware during module loading. Add a new API for interface drivers to load their firmware asynchronously. The same semantics of the firmware table are followed like before. Interface drivers will be converted in follow-up patches, then we can remove the old, synchronous firmware loading function. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
0beecac8ab
commit
534111c78c
@@ -878,6 +878,7 @@ static int lbs_init_adapter(struct lbs_private *priv)
|
||||
priv->is_host_sleep_configured = 0;
|
||||
priv->is_host_sleep_activated = 0;
|
||||
init_waitqueue_head(&priv->host_sleep_q);
|
||||
init_waitqueue_head(&priv->fw_waitq);
|
||||
mutex_init(&priv->lock);
|
||||
|
||||
setup_timer(&priv->command_timer, lbs_cmd_timeout_handler,
|
||||
@@ -1037,6 +1038,8 @@ void lbs_remove_card(struct lbs_private *priv)
|
||||
if (priv->wiphy_registered)
|
||||
lbs_scan_deinit(priv);
|
||||
|
||||
lbs_wait_for_firmware_load(priv);
|
||||
|
||||
/* worker thread destruction blocks on the in-flight command which
|
||||
* should have been cleared already in lbs_stop_card().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user