summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mvm.h
diff options
context:
space:
mode:
authorJohannes Berg2013-05-03 11:44:16 +0200
committerJohannes Berg2013-05-14 10:42:37 +0200
commitafc66bb734d44ea64cc78ae8d8034886e8cfb2c7 (patch)
tree5a54d7ccfdc8c25833089db43a25e7f4d5f85b6e /drivers/net/wireless/iwlwifi/mvm/mvm.h
parentiwlwifi: add new 7260 and 3160 series device IDs (diff)
downloadkernel-qcow2-linux-afc66bb734d44ea64cc78ae8d8034886e8cfb2c7.tar.gz
kernel-qcow2-linux-afc66bb734d44ea64cc78ae8d8034886e8cfb2c7.tar.xz
kernel-qcow2-linux-afc66bb734d44ea64cc78ae8d8034886e8cfb2c7.zip
iwlwifi: mvm: optionally store D3 SRAM after resume
The D3 image SRAM is overwritten by the runtime image, so it can't be accessed after resume. However, it can be very useful to look at it to know what happened during D3, so add the ability to store the image and make it available in debugfs. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index 3505fcafde66..712c39ae748f 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -344,6 +344,10 @@ struct iwl_mvm {
#ifdef CONFIG_PM_SLEEP
int gtk_ivlen, gtk_icvlen, ptk_ivlen, ptk_icvlen;
+#ifdef CONFIG_IWLWIFI_DEBUGFS
+ bool store_d3_resume_sram;
+ void *d3_resume_sram;
+#endif
#endif
/* BT-Coex */