]> 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)
commitcec57433b49c0384731c260c4f2592684ac9bedc
tree0b5edaad948d99983ed67f72a95f71631339e206
parent1827fe811c7639a7675b2a2fd47aba31b9b50e34
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:

9ce442c26ac7 ("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