]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit8aad24642a7c06832a75f1d20e8e3112b4fbd815
tree53d29682577134e535cf3b96281fec45847c61f1
parent50e9f746f63c9b881f2ca4a35dbdfd34b1a8a215
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