Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158901
b: refs/heads/master
c: 3354a0f
h: refs/heads/master
i:
  158899: a1988c6
v: v3
  • Loading branch information
Mohamed Abbas authored and John W. Linville committed Jul 10, 2009
1 parent cb2233e commit 6a1859d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d5ca3b8b2b38ab676d0adc268a3c6a82e7a7588
refs/heads/master: 3354a0f6a3ced6957dfb9f689ad075cfa8fd272f
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,13 +1812,19 @@ static int iwl_prepare_card_hw(struct iwl_priv *priv)

IWL_DEBUG_INFO(priv, "iwl_prepare_card_hw enter \n");

ret = iwl_set_hw_ready(priv);
if (priv->hw_ready)
return ret;

/* If HW is not ready, prepare the conditions to check again */
iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
CSR_HW_IF_CONFIG_REG_PREPARE);

ret = iwl_poll_bit(priv, CSR_HW_IF_CONFIG_REG,
~CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE,
CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE, 150000);

/* HW should be ready by now, check again. */
if (ret != -ETIMEDOUT)
iwl_set_hw_ready(priv);

Expand Down

0 comments on commit 6a1859d

Please sign in to comment.