iwlwifi: clear persistence bit according to device family
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Wed, 29 May 2019 13:39:51 +0000 (16:39 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 1 Jun 2019 05:04:47 +0000 (08:04 +0300)
commit44f61b5c832c4085fcf476484efeaeef96dcfb8b
tree95886511a938f1f41921444ed23e5d40eb02222d
parentb3500b472c880b5abe90ffd5c4a25aa736f906ad
iwlwifi: clear persistence bit according to device family

The driver attempts to clear persistence bit on any device familiy even
though only 9000 and 22000 families require it. Clear the bit only on
the relevant device families.

Each HW has different address to the write protection register. Use the
right register for each HW

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 8954e1eb2270 ("iwlwifi: trans: Clear persistence bit when starting the FW")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/iwl-prph.h
drivers/net/wireless/intel/iwlwifi/pcie/trans.c