ath10k: add diag_read() to hif ops
authorKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Sep 2014 11:16:52 +0000 (14:16 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 26 Sep 2014 10:35:36 +0000 (13:35 +0300)
commiteef254051f3c7675e3ac4df23f8ccf7b210c39c5
treee7e3f6b235aabd597ccdc6dde605a82fb3498ac6
parentd5d6805bf90f420abbaac30037d5fef6b7c05096
ath10k: add diag_read() to hif ops

diag_read() is used for reading from firmware memory via the diagnose window.
First user will be cal_data debugfs file.

To serialise diagnostic window access and make it safe to use while firmware is
running take ce_lock both in ath10k_pci_diag_write_mem() and
ath10k_pci_diag_read_mem(). Because of that all the CE calls had to be changed
to _nolock variants.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/ce.h
drivers/net/wireless/ath/ath10k/hif.h
drivers/net/wireless/ath/ath10k/pci.c