OSDN Git Service

ath10k: decouple ath10k_pci_start_ce()
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 25 Nov 2013 13:06:23 +0000 (14:06 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 27 Nov 2013 14:45:32 +0000 (16:45 +0200)
commitc80de12b3e9bde0736f66feed8dd7b6fdc739d16
tree347f9338715fc15cce82748f92c9861803ff6cb1
parent85622cde05c18371c79a7f2a6a122271170f3ff1
ath10k: decouple ath10k_pci_start_ce()

The function did a couple of things: it allocated
CE completions, registered CE callbacks and
enabled CE interrupts through HW registers.

This cannot be so. Split the function into one
that allocates CE completions and the other one
that starts off CE operation.

This is required for future legacy shared
interrupt handling.

This also fixes possible memory leak if post rx
failed.

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