ath10k: split ce initialization and allocation
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 28 Mar 2014 08:02:38 +0000 (10:02 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 28 Mar 2014 12:32:10 +0000 (14:32 +0200)
commit25d0dbcbd5c746631ec1ee08bbbc4eba86bb9163
treee7325922a9bba365c3eb0ad1a88fcde66d66abfa
parent68c03249f388aafe74f0e87e2743294d4384c00c
ath10k: split ce initialization and allocation

Definitions by which copy engine structure are
allocated do not change so it doesn't make much
sense to re-create those structures each time
device is booted (e.g. due to firmware recovery).

This should decrease chance of memory allocation
failures.

While at it remove per_transfer_context pointer
indirection. The array has been trailing the copy
engine ringbuffer structure anyway. This also
saves pointer size worth of bytes for each copy
engine ringbuffer.

Reported-By: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
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/pci.c