]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: don't leave the new NICs awake for commands
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 25 Mar 2014 08:00:31 +0000 (10:00 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 6 Apr 2014 07:18:47 +0000 (10:18 +0300)
commitc51a32719790f67cfd307faf821bd72dfcb27bd6
tree0b5edaad948d99983ed67f72a95f71631339e206
parent77bfd4ea3cdb2007ccae78b3ec47f3881505ab91
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:

b4aef8b72fa6 ("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>
drivers/net/wireless/iwlwifi/iwl-7000.c
drivers/net/wireless/iwlwifi/iwl-config.h
drivers/net/wireless/iwlwifi/pcie/tx.c