iwlwifi: don't enable all interrupts on resuming
authorJohannes Berg <johannes.berg@intel.com>
Tue, 8 Jan 2013 09:26:17 +0000 (10:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Jan 2013 13:18:06 +0000 (14:18 +0100)
Enabling the RF-kill interrupt is sufficient for getting
RF-kill notifications, and no other interrupt is needed
as the device isn't functional when suspended and will be
restarted/reconfigured when mac80211 resumes it later.

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

index db3b0552b2ebd4e06032818ac9a1f761c563c6c9..2de5770de64bff54e655792fd51303f3c2247866 100644 (file)
@@ -719,9 +719,6 @@ static int iwl_trans_pcie_resume(struct iwl_trans *trans)
        hw_rfkill = iwl_is_rfkill_set(trans);
        iwl_op_mode_hw_rf_kill(trans->op_mode, hw_rfkill);
 
-       if (!hw_rfkill)
-               iwl_enable_interrupts(trans);
-
        return 0;
 }
 #endif /* CONFIG_PM_SLEEP */