]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw89: renew a completion for each H2C command waiting C2H event
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 15 Sep 2025 06:53:43 +0000 (14:53 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 18 Sep 2025 01:17:09 +0000 (09:17 +0800)
commitbc2a5a12fa6259e190c7edb03e63b28ab480101b
treebd6d8f43774496043cb6b8414be6ae6762af6026
parent5ff9e80de2a8bea5a7c0b30a4e273b399fbf2acc
wifi: rtw89: renew a completion for each H2C command waiting C2H event

Logically before a waiting side which has already timed out turns the
atomic status back to idle, a completing side could still pass atomic
condition and call complete. It will make the following H2C commands,
waiting C2H events, get a completion unexpectedly early. Hence, renew
a completion for each H2C command waiting a C2H event.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250915065343.39023-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c