aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-03-25 04:00:31 -0400
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-04-06 03:18:47 -0400
commite7f7634092d73d86846e8d8a85d417b5707ffb29 (patch)
tree0b5edaad948d99983ed67f72a95f71631339e206 /drivers/net/wireless/iwlwifi/iwl-config.h
parent749f1fe1bb49135e62cd64133f9e3875f2840d66 (diff)
iwlwifi: pcie: don't leave the new NICs awake for commands
A hardware bug had been discovered on 7260 / 3160 and 7265 and the workaround for this bug is to force the NIC to stay awake as long as we have host commands in flight. This workaround has been introduced for all NICs in a previous patch: b9439491055a ("iwlwifi: pcie: keep the NIC awake when commands are in flight") In newer NICs, this bug is solved, so we can let the NIC go to sleep even when we send commands. The hardware will wake up when we increment the scheduler write pointer. Make the workaround conditional to only use it on affected hardware. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-config.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h
index 3f17dc3f2c8a..8c167302a4cf 100644
--- a/drivers/net/wireless/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/iwlwifi/iwl-config.h
@@ -146,6 +146,8 @@ static inline u8 num_of_ant(u8 mask)
146 * @wd_timeout: TX queues watchdog timeout 146 * @wd_timeout: TX queues watchdog timeout
147 * @max_event_log_size: size of event log buffer size for ucode event logging 147 * @max_event_log_size: size of event log buffer size for ucode event logging
148 * @shadow_reg_enable: HW shadow register support 148 * @shadow_reg_enable: HW shadow register support
149 * @apmg_wake_up_wa: should the MAC access REQ be asserted when a command
150 * is in flight. This is due to a HW bug in 7260, 3160 and 7265.
149 */ 151 */
150struct iwl_base_params { 152struct iwl_base_params {
151 int eeprom_size; 153 int eeprom_size;
@@ -160,6 +162,7 @@ struct iwl_base_params {
160 u32 max_event_log_size; 162 u32 max_event_log_size;
161 const bool shadow_reg_enable; 163 const bool shadow_reg_enable;
162 const bool pcie_l1_allowed; 164 const bool pcie_l1_allowed;
165 const bool apmg_wake_up_wa;
163}; 166};
164 167
165/* 168/*