]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: Reorder data handling in irq_work
authorIdo Yariv <ido@wizery.com>
Tue, 1 Mar 2011 13:14:38 +0000 (15:14 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 3 Mar 2011 14:10:46 +0000 (16:10 +0200)
commit7dba43ab1a52fcd760a8f15c97e601e49fa8a32e
tree53d29682577134e535cf3b96281fec45847c61f1
parent6f18f42e16512d2460f5f45c77bc8d645692d40f
wl12xx: Reorder data handling in irq_work

The FW has a limited amount of memory for holding frames. In case it
runs out of memory reserved for RX frames, it'll have no other choice
but to drop packets received from the AP. Thus, it is important to
handle RX data interrupts as soon as possible, before handling anything
else.

In addition, since there are enough TX descriptors to go around, it is
better to first send TX frames, and only then handle TX completions.

Fix this by changing the order of function calls in wl1271_irq_work.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c