Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91fac940 authored by Moshe Harel's avatar Moshe Harel Committed by Luca Coelho
Browse files

iwlwifi: nvm: add nvm phy_sku section to debugfs



The only NVM section not captured in debugfs.

Signed-off-by: default avatarMoshe Harel <moshe.harel@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent e6c21be6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1495,6 +1495,9 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
	if (!debugfs_create_blob("nvm_prod", S_IRUSR,
				  mvm->debugfs_dir, &mvm->nvm_prod_blob))
		goto err;
	if (!debugfs_create_blob("nvm_phy_sku", S_IRUSR,
				 mvm->debugfs_dir, &mvm->nvm_phy_sku_blob))
		goto err;

	/*
	 * Create a symlink with mac80211. It will be removed when mac80211
+1 −0
Original line number Diff line number Diff line
@@ -688,6 +688,7 @@ struct iwl_mvm {
	struct debugfs_blob_wrapper nvm_sw_blob;
	struct debugfs_blob_wrapper nvm_calib_blob;
	struct debugfs_blob_wrapper nvm_prod_blob;
	struct debugfs_blob_wrapper nvm_phy_sku_blob;

	struct iwl_mvm_frame_stats drv_rx_stats;
	spinlock_t drv_stats_lock;
+4 −0
Original line number Diff line number Diff line
@@ -564,6 +564,10 @@ int iwl_nvm_init(struct iwl_mvm *mvm, bool read_nvm_from_nic)
				mvm->nvm_prod_blob.data = temp;
				mvm->nvm_prod_blob.size  = ret;
				break;
			case NVM_SECTION_TYPE_PHY_SKU:
				mvm->nvm_phy_sku_blob.data = temp;
				mvm->nvm_phy_sku_blob.size  = ret;
				break;
			default:
				if (section == mvm->cfg->nvm_hw_section_num) {
					mvm->nvm_hw_blob.data = temp;