]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcebaad1d3e58f2460b9db57b6e16b0441ced7e56
treee1c56fe8efbbec8a9b61f50cef95dd5a929efefd
parent9a1e12d9df916f71460319ee764755016eeb201b
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