ath10k: deinit copy engine before resetting
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 28 Mar 2014 08:02:45 +0000 (10:02 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 28 Mar 2014 12:32:18 +0000 (14:32 +0200)
commitdf5e85250a80d7f4f9ade0e1b2347d56728756b4
treee2ee8f3578e03ceb1af6fd96e15211612837561d
parent25d0dbcbd5c746631ec1ee08bbbc4eba86bb9163
ath10k: deinit copy engine before resetting

Since copy engine allocation has been revised the
ath10k_pci_ce_deinit() now simply zeroes copy
engine registers. It's probably a good idea to do
that before reseting for a more graceful device
reset.

Before ath10k_pci_ce_deinit() freed copy engine
ringbuffer memory so it was required to call it
after resetting. Otherwise it was possible for
device to access unmapped/freed copy engine
ringbuffer memory.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c