]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: fix tracking of cmd_in_flight
authorIlan Peer <ilan.peer@intel.com>
Wed, 13 May 2015 11:34:07 +0000 (14:34 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 28 May 2015 10:27:51 +0000 (13:27 +0300)
commitac89ef3433374a34ca9bcd7e5456124a7759733c
treec862522f942b54f96f649fb764a1fce6c95d0db7
parentdc5716cd0d0c9cdb0ffa7faf06b79e24a6e8331f
iwlwifi: pcie: fix tracking of cmd_in_flight

The cmd_in_flight tracking was introduced to workaround faulty
power management hardware, by having the driver keep the NIC
awake as long as there are commands in flight. However, some of
the code handling this workaround was unconditionally executed,
which resulted with an inconsistent state where the driver assumed
that the NIC was awake although it wasn't.

Fix this by renaming 'cmd_in_flight' to 'cmd_hold_nic_awake' and
handling the NIC requested awake state only for hardwares for
which the workaround is needed.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/tx.c