iwlwifi: pcie: reset write pointer on ict reset
authorEliad Peller <eliad@wizery.com>
Thu, 16 Jul 2015 17:17:42 +0000 (20:17 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 4 Aug 2015 07:17:32 +0000 (10:17 +0300)
commit18f5a374b3db33720dc8c66cb94947585904d6c6
tree6a1d8544f626504a8912e02af05a67f0df0b7a07
parent6dfb36c89dc21c2c77a4b8ea48679cbb15d158b4
iwlwifi: pcie: reset write pointer on ict reset

Since the CSR_DRAM_INIT_TBL_WRITE_POINTER bit wasn't set
on ict reset, in some flows (like disable ict followed by
immediate reset ict) the driver and hardware went out
of sync (the driver cleared the ict_index, while the hw
kept it intact).

Fix it by setting the flag when resetting ict.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-csr.h
drivers/net/wireless/iwlwifi/pcie/rx.c