aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/debugfs.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-11-18 10:00:03 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-12-09 15:29:45 -0500
commit086f7368d4120ff0de376af9b7f9beaec8bf4b4d (patch)
treebb1c565bc4351c56b77579bbdbba182c20675051 /drivers/net/wireless/iwlwifi/mvm/debugfs.c
parentb70ab7278f5e872dec600a6f16c6a8dba4601794 (diff)
iwlwifi: mvm: dump NVM from debugfs
This allows to see the content of the NVM the driver reads. Note that the output is in binary, and requires some external user space tool to display the data properly. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/debugfs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index 931723a03a43..e8f62a6a1b57 100644
--- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
@@ -720,6 +720,19 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
720 goto err; 720 goto err;
721#endif 721#endif
722 722
723 if (!debugfs_create_blob("nvm_hw", S_IRUSR,
724 mvm->debugfs_dir, &mvm->nvm_hw_blob))
725 goto err;
726 if (!debugfs_create_blob("nvm_sw", S_IRUSR,
727 mvm->debugfs_dir, &mvm->nvm_sw_blob))
728 goto err;
729 if (!debugfs_create_blob("nvm_calib", S_IRUSR,
730 mvm->debugfs_dir, &mvm->nvm_calib_blob))
731 goto err;
732 if (!debugfs_create_blob("nvm_prod", S_IRUSR,
733 mvm->debugfs_dir, &mvm->nvm_prod_blob))
734 goto err;
735
723 /* 736 /*
724 * Create a symlink with mac80211. It will be removed when mac80211 737 * Create a symlink with mac80211. It will be removed when mac80211
725 * exists (before the opmode exists which removes the target.) 738 * exists (before the opmode exists which removes the target.)