diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2009-11-06 17:53:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 15:23:48 -0500 |
commit | 309e731a619bee28ace609b0c4c3a0029b7e5394 (patch) | |
tree | b3bcb5430d6d7a090ffd0b57b13e431f7b586ca0 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | f060face819401fb1f6456d362c5bc6672bba655 (diff) |
iwlwifi: MAC_ACCESS_REQ cleanup
Add txq_id info to "Tx queue requesting wakeup" debug message
Add "Rx queue requesting wakeup" debug message
Move clear of CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ to be after nearby
iwl_write_prph(), since iwl_write_prph() sets it and clears it. Almost
removed it entirely, but just making sure in case someone removes the
iwl_write_prph()! Also remove unneeded priv->lock usage; this is now
handled by priv->reg_lock within iwl_clear_bit().
Join a couple of lines that had unneeded line returns.
Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 8198e14b8fad..da0b38e866ba 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1934,19 +1934,17 @@ static void __iwl_down(struct iwl_priv *priv) | |||
1934 | 1934 | ||
1935 | /* device going down, Stop using ICT table */ | 1935 | /* device going down, Stop using ICT table */ |
1936 | iwl_disable_ict(priv); | 1936 | iwl_disable_ict(priv); |
1937 | spin_lock_irqsave(&priv->lock, flags); | ||
1938 | iwl_clear_bit(priv, CSR_GP_CNTRL, | ||
1939 | CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); | ||
1940 | spin_unlock_irqrestore(&priv->lock, flags); | ||
1941 | 1937 | ||
1942 | iwl_txq_ctx_stop(priv); | 1938 | iwl_txq_ctx_stop(priv); |
1943 | iwl_rxq_stop(priv); | 1939 | iwl_rxq_stop(priv); |
1944 | 1940 | ||
1945 | iwl_write_prph(priv, APMG_CLK_DIS_REG, | 1941 | /* Power-down device's busmaster DMA clocks */ |
1946 | APMG_CLK_VAL_DMA_CLK_RQT); | 1942 | iwl_write_prph(priv, APMG_CLK_DIS_REG, APMG_CLK_VAL_DMA_CLK_RQT); |
1947 | |||
1948 | udelay(5); | 1943 | udelay(5); |
1949 | 1944 | ||
1945 | /* Make sure (redundant) we've released our request to stay awake */ | ||
1946 | iwl_clear_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); | ||
1947 | |||
1950 | /* Stop the device, and put it in low power state */ | 1948 | /* Stop the device, and put it in low power state */ |
1951 | priv->cfg->ops->lib->apm_ops.stop(priv); | 1949 | priv->cfg->ops->lib->apm_ops.stop(priv); |
1952 | 1950 | ||