Skip to content

Commit

Permalink
iwlwifi: ensure led registration complete as part of initialization
Browse files Browse the repository at this point in the history
After the workqueue is notified the LED code may be accessed. Ensure
that LED registration completes completely as part of initialization
before anything waiting on this is notified.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Reinette Chatre authored and John W. Linville committed Apr 8, 2008
1 parent dc92e49 commit fe00b5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -5874,12 +5874,12 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv)

iwl3945_reg_txpower_periodic(priv);

iwl3945_led_register(priv);

IWL_DEBUG_INFO("ALIVE processing complete.\n");
set_bit(STATUS_READY, &priv->status);
wake_up_interruptible(&priv->wait_command_queue);

iwl3945_led_register(priv);

if (priv->error_recovering)
iwl3945_error_recovery(priv);

Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -5701,12 +5701,12 @@ static void iwl4965_alive_start(struct iwl_priv *priv)

iwl4965_rf_kill_ct_config(priv);

iwl_leds_register(priv);

IWL_DEBUG_INFO("ALIVE processing complete.\n");
set_bit(STATUS_READY, &priv->status);
wake_up_interruptible(&priv->wait_command_queue);

iwl_leds_register(priv);

if (priv->error_recovering)
iwl4965_error_recovery(priv);

Expand Down

0 comments on commit fe00b5a

Please sign in to comment.