iwlwifi: pcie: add RTPM support when wifi is enabled
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 18 Aug 2015 13:02:38 +0000 (16:02 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 1 Feb 2016 14:40:17 +0000 (16:40 +0200)
commit4cbb8e50338a2f2453ba399ce52562e0a111fc1f
tree97268e5142b0aa391441ae818dbbb0f782b73141
parentb3ff1270566d41eb8ab2d67844bf17b7fa9fee78
iwlwifi: pcie: add RTPM support when wifi is enabled

Enable runtime power management (RTPM) for PCIe devices and implement
the corresponding functions to enable D0i3 mode when the device is
idle.

Additionally, remove some unnecessary #ifdef's because the RTPM code
will not be called if runtime PM is not configured.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
drivers/net/wireless/intel/iwlwifi/pcie/drv.c
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/trans.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c