[PATCH 0/2] wifi: rsi: stop packet threads before bus teardown

From: Zhao Li

Date: Wed Oct 28 2026 - 10:32:15 EST


Stop the WLAN RX and TX threads before mac80211 or bus teardown. Then
stop coexistence TX after HCI unregister and before USB reset or SDIO
chip reset and function disable. Probe failures are covered before
buffer freeing or function disable.

Patch 1 makes repeated thread stops safe and prevents the WLAN TX loop
from draining queued packets after a stop request. Patch 2 does the same
for coexistence TX without adding an exported core-to-bus wrapper.

The driver is orphaned and the series was not run on RS9113 or RS9116
hardware. Testing from device users would be helpful.
LLM assistance was used to review this series.

Zhao Li (2):
wifi: rsi: stop WLAN threads before teardown
wifi: rsi: stop coexistence TX before bus teardown

drivers/net/wireless/rsi/rsi_91x_coex.c | 3 +++
drivers/net/wireless/rsi/rsi_91x_core.c | 2 +-
drivers/net/wireless/rsi/rsi_91x_sdio.c | 5 +++++
drivers/net/wireless/rsi/rsi_91x_usb.c | 15 +++++++++++----
drivers/net/wireless/rsi/rsi_coex.h | 12 ++++++++++++
drivers/net/wireless/rsi/rsi_common.h | 4 ++++
6 files changed, 36 insertions(+), 5 deletions(-)


base-commit: 25e73f1d6868c759c8eb56cad4e411692c5341b4
--
2.56.0