From: Baochen Qiang <bqiang@xxxxxxxxxxxxxx> On-board sram contains valuable infomation for debug, this patch adds a new interface named "sram" in debugfs with which we can dump sram content using following cmd: cat /sys/kernel/ath11k/<pdev name>/sram > sram.dump Baochen Qiang (3): ath11k: Split PCI write/read functions ath11k: Move pdev debugfs creation ahead ath11k: Implement sram dump interface drivers/net/wireless/ath/ath11k/core.c | 31 +++++--- drivers/net/wireless/ath/ath11k/debugfs.c | 85 +++++++++++++++++++-- drivers/net/wireless/ath/ath11k/debugfs.h | 14 ++++ drivers/net/wireless/ath/ath11k/hif.h | 10 +++ drivers/net/wireless/ath/ath11k/hw.c | 10 +++ drivers/net/wireless/ath/ath11k/hw.h | 8 ++ drivers/net/wireless/ath/ath11k/pci.c | 91 ++++++++++++++++++----- 7 files changed, 214 insertions(+), 35 deletions(-) -- 2.25.1