|
|
@@ -6,7 +6,7 @@
|
|
|
* GPL LICENSE SUMMARY
|
|
|
*
|
|
|
* Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
|
|
|
- * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
|
|
|
+ * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of version 2 of the GNU General Public License as
|
|
|
@@ -32,7 +32,7 @@
|
|
|
* BSD LICENSE
|
|
|
*
|
|
|
* Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved.
|
|
|
- * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
|
|
|
+ * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
|
|
|
* All rights reserved.
|
|
|
*
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
@@ -629,7 +629,18 @@ static int iwl_pci_resume(struct device *device)
|
|
|
if (!trans->op_mode)
|
|
|
return 0;
|
|
|
|
|
|
- iwl_enable_rfkill_int(trans);
|
|
|
+ /*
|
|
|
+ * On suspend, ict is disabled, and the interrupt mask
|
|
|
+ * gets cleared. Reconfigure them both in case of d0i3
|
|
|
+ * image. Otherwise, only enable rfkill interrupt (in
|
|
|
+ * order to keep track of the rfkill status)
|
|
|
+ */
|
|
|
+ if (trans->wowlan_d0i3) {
|
|
|
+ iwl_pcie_reset_ict(trans);
|
|
|
+ iwl_enable_interrupts(trans);
|
|
|
+ } else {
|
|
|
+ iwl_enable_rfkill_int(trans);
|
|
|
+ }
|
|
|
|
|
|
hw_rfkill = iwl_is_rfkill_set(trans);
|
|
|
iwl_trans_pcie_rf_kill(trans, hw_rfkill);
|