iwlwifi: pcie: poke device when commands don't complete quickly
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Oct 2013 07:59:25 +0000 (09:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 07:59:15 +0000 (09:59 +0200)
commit9439eac79f1edae172f7c54dce61c4fe2c8308ad
treec5c1a0d4996a4bbefe0fd7aaf45a082c08cccaf9
parent5a3e9f7f8c8768b5f7df81100c684e4cd00a6eb5
iwlwifi: pcie: poke device when commands don't complete quickly

In certain corner cases in the firmware implementation, powersave
transitions can cause the firmware to miss the fact that commands
were added to the queue/FIFO and thus never processes them. Since
the commands really are in the queue, try to poke the firmware in
such cases (by grabbing NIC access, which wakes up the NIC) so it
notices the new command and processes it.

Reviewed-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/tx.c