linux/drivers/net/wireless/rtlwifi/rtl8188ee
Vincent Fann 1277fa2ab2 rtlwifi: Remove the clear interrupt routine from all drivers
Several of these drivers have there TX randomly blocked for 3~5 seconds while
measuring tx throughput (iperf). The root couse happens in rtl_pci_flush().
The function uses a while-loop to wait for TX queue length to decrease to 0.
The TX queue length counts the number of packets that are queued in the driver.
The driver relys on the TX OK interrupt to return skb and reduce TX queue length.

The interrupt subroutine disables interupts, reads the interrupt registers, and
then clears the registers in the beginning of _rtl_pci_interrupt(). After all
interupts process are finished, the driver invokes enable_interrupt() to enable
interupts. This behavior is normal for an interrupt subroutine.

But enable_interrupt() invokes clear_interrupt() again. This unexpected interrupt
clearing may cleari me fresh TX OK interrupts. These missing interrupts cause TX
queue length to never reduce to 0i, which causes rtl_pci_flush() to be stuck in
unterminated while-loop.

This patch removes clear_interrupt() in enable_interrupt() to avoid this behavior.

Signed-off-by: Vincent Fann <vincent_fann@realtek.com>
Signed-off-by: Shao Fu <shaofu@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [3.18+]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-05-26 13:58:47 +03:00
..
def.h rtlwifi: Remove unused defines from driver-specific def.h 2015-03-03 15:30:01 +02:00
dm.c rtlwifi: rtl8188ee: Convert driver to use the common DM table init routine 2015-01-09 15:48:11 +02:00
dm.h rtlwifi: Move macro definitions to core 2015-01-09 15:48:20 +02:00
fw.c rtlwifi: rtl8188ee: rtl8192com: rtl8192cu: rtl8192ee: rtl8723ae: rtl87323be: rtl8821ae: Use common cmd_send_packet 2014-09-30 13:17:38 -04:00
fw.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
hw.c rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
hw.h rtlwifi: remove unused allow_all_destaddr functions 2014-05-19 16:42:14 -04:00
led.c rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
led.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
Makefile rtlwifi: Fix problems with building an allyesconfig 2014-09-26 17:25:00 -04:00
phy.c rtlwifi: rtl8188ee: missing curly braces in handle_branch1() 2015-03-03 15:40:47 +02:00
phy.h rtlwifi: Fix problems with building an allyesconfig 2014-09-26 17:25:00 -04:00
pwrseq.c rtlwifi: rtl8188ee: Fix pwrseqcmd.h include path. 2015-05-26 13:41:18 +03:00
pwrseq.h rtlwifi: rtl8188ee: Fix pwrseqcmd.h include path. 2015-05-26 13:41:18 +03:00
reg.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
rf.c rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
rf.h rtlwifi: Remove unused RF6052_MAX_REG define 2015-03-03 15:30:03 +02:00
sw.c rtlwifi: rtl8188ee: rtl8723ae: rtl8821ae: Initialize some variables 2014-09-30 13:17:38 -04:00
sw.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
table.c rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
table.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00
trx.c rtlwifi: rtl8821ae: Switch to use common rate control routine 2014-12-24 18:34:29 +02:00
trx.h rtlwifi: rtl8188ee: Update driver to match Realtek release of 06282014 2014-09-26 17:22:28 -04:00