iwlwifi: mvm: add debugfs for prph reg read/write
authorEliad Peller <eliad@wizery.com>
Thu, 9 Jan 2014 11:12:54 +0000 (13:12 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 13 Feb 2014 11:45:11 +0000 (13:45 +0200)
commitf3c221f6ea17f4fea250ac17c7f27ecb71e62465
tree1ca1af4508bcc14d79ad807dfba5a4016347cab9
parent63f7535d6eb80a465d353c414d14560367c34fb2
iwlwifi: mvm: add debugfs for prph reg read/write

Allow reading/writing prph registers.

The address is set in the first argument
of the write operation. second argument
is optional and can be used for writing.

e.g.
echo '0xA01234 0x99' > /sys/kernel/debug/ieee80211/phy0/iwlwifi/iwlmvm/prph_reg
will write 0x99 into reg 0xA01234

cat /sys/kernel/debug/ieee80211/phy0/iwlwifi/iwlmvm/prph_reg
will show its current value (probably 0x99)

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/mvm.h