iwlwifi: pcie: don't call set_pwr functions for family 8000
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 27 Apr 2015 18:38:10 +0000 (21:38 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 26 May 2015 16:21:07 +0000 (19:21 +0300)
commita61408e9a48e7634984408e334b125a72726440e
treee1c56fe8efbbec8a9b61f50cef95dd5a929efefd
parent04c9599d1a4cdd91b4c0bded3b12cc8203b68a2c
iwlwifi: pcie: don't call set_pwr functions for family 8000

We should not call the iwl_pcie_set_pwr() functions in the
suspend/resume flows for family 8000, because the register used is
locked in devices from this family.  Doing this causes an NMI
protection error (RT_NMI_INTERRUPT_PREG_PROTECTION).

To fix this, skip those calls if the device family is
IWL_DEVICE_FAMILY_8000.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c