linux/drivers/net/wireless/rtlwifi
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
..
btcoexist rtlwifi: btcoexist: Fix interference between rtl8723be and Bluetooth 2015-05-26 13:48:16 +03:00
rtl8188ee rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
rtl8192c rtlwifi: rtl8192c-common: Convert driver to use common DM table initialization 2015-01-09 15:48:12 +02:00
rtl8192ce rtlwifi: Remove unused RF6052_MAX_REG define 2015-03-03 15:30:03 +02:00
rtl8192cu rtlwifi: rtl8192cu: Remove rtl92c_init_beacon_max_error's parameter 2015-05-26 13:43:18 +03:00
rtl8192de rtlwifi: Change REG_CR+2 to MSR 2015-03-30 11:30:07 +03:00
rtl8192ee rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
rtl8192se rtlwifi: Change REG_CR+2 to MSR 2015-03-30 11:30:07 +03:00
rtl8723ae rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
rtl8723be rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
rtl8723com rtlwifi: rtl8723be: Update driver to match Realtek release of 06/28/14 2014-09-30 13:17:15 -04:00
rtl8821ae rtlwifi: Remove the clear interrupt routine from all drivers 2015-05-26 13:58:47 +03:00
base.c rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet. 2015-04-07 20:09:04 +03:00
base.h rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet. 2015-04-07 20:09:04 +03:00
cam.c rtlwifi: Modify cam.{c,h} and efuse.{c,h} for new drivers 2014-09-26 17:22:28 -04:00
cam.h rtlwifi: Remove unused defines from cam.h 2015-03-03 15:30:05 +02:00
core.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
core.h mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
debug.c rtlwifi: Finish modifying core routines for new drivers 2014-09-26 17:22:28 -04:00
debug.h rtlwifi: rtl8821ae: Move driver from staging to regular tree 2014-09-26 17:22:28 -04:00
efuse.c rtlwifi: rtl8188ee: rtl8723ae: rtl8821ae: Initialize some variables 2014-09-30 13:17:38 -04:00
efuse.h rtlwifi: Remove unused defines from efuse.h 2015-03-03 15:30:08 +02:00
Kconfig rtlwifi: Fix Kconfig for RTL8192EE 2014-10-02 14:26:32 -04:00
Makefile rtlwifi: rtl8192ee: Move driver from staging to the regular tree 2014-09-30 13:17:14 -04:00
pci.c rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet. 2015-04-07 20:09:04 +03:00
pci.h rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO 2015-02-06 08:36:08 +02:00
ps.c rtlwifi: Update power-save routines for 062814 driver 2014-09-26 17:22:28 -04:00
ps.h rtlwifi: Update power-save routines for 062814 driver 2014-09-26 17:22:28 -04:00
pwrseqcmd.h rtlwifi: rtl8821ae: Move driver from staging to regular tree 2014-09-26 17:22:28 -04:00
rc.c rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet. 2015-04-07 20:09:04 +03:00
rc.h rtlwifi: Finish modifying core routines for new drivers 2014-09-26 17:22:28 -04:00
regd.c rtlwifi: Update regulatory database 2015-05-26 13:56:31 +03:00
regd.h rtlwifi: Update regulatory database 2015-05-26 13:56:31 +03:00
stats.c rtlwifi: No need to export rtl_evm_dbm_jaguar anymore 2015-03-16 17:55:41 +02:00
stats.h rtlwifi: No need to export rtl_evm_dbm_jaguar anymore 2015-03-16 17:55:41 +02:00
usb.c rtlwifi: rtl8192cu: Fix kernel deadlock 2015-04-28 13:55:28 +03:00
usb.h
wifi.h rtlwifi: rtl8192ee: Fix handling of new style descriptors 2015-02-06 08:36:00 +02:00