Skip to content

Commit

Permalink
iwlwifi: don't enable all interrupts on resuming
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Jan 16, 2013
1 parent d21fa2d commit b1cf1bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b1cf1bc

Please sign in to comment.