ath10k: make sure to really disable irqs
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 22 Aug 2014 12:23:33 +0000 (14:23 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 08:28:56 +0000 (11:28 +0300)
commitec5ba4d3b6b60456b067e8c625e87e67cdde2d12
tree5efdd7d536de18235039627f75f009aff06c2738
parent145cc1214a271c72b81a064f4d65c3cf612e941e
ath10k: make sure to really disable irqs

This fixes two corner cases.

One is a race between disabling copy engine
interrupts and unhandled pending interrupts on the
host. This could end up with a runaway tasklet and
consequently memory leak of a few copy engine
rx buffers.

The other one is an unexpected (and non-maskable
via device CSR) MSI fw indication interrupt during
teardown. This could trigger the same problem as
the first corner case.

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