wifi: rtw89: mac: handle C2H receive/done ACK in interrupt context
authorZong-Zhe Yang <kevin_yang@realtek.com>
Wed, 19 Apr 2023 11:46:01 +0000 (11:46 +0000)
committerKalle Valo <kvalo@kernel.org>
Fri, 5 May 2023 11:59:33 +0000 (14:59 +0300)
commit32bb12eb73dceeb78c04a46c333f6f319cf1cebd
treee169b3ebfbc55286c9a1bb6c76d18e535608070a
parent8febd68be526c9f256c5490dd4b094a70e1b91ba
wifi: rtw89: mac: handle C2H receive/done ACK in interrupt context

We have some MAC H2Cs (host to chip packets), which have no clear
individual C2Hs (chip to host packets) to indicate FW execution
response, but they are going to require to wait for FW completion.
So, we have to deal with this via common MAC C2H receive/done ACKs.

This commit changes the context, where common MAC C2H receive/done
ACK handlers are executed, to interrupt context. And, code comments
are added to prevent future commits from using it incorrectly.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/c4d766885e00b9f9dcf7954a80096c8b9d21149b.camel@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c