wifi: rtw89: pci: fix interrupt enable mask for HALT C2H of RTL8851B
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 8 May 2023 08:43:33 +0000 (16:43 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 11 May 2023 13:19:50 +0000 (16:19 +0300)
commitaa70fa4f7dd80e4e495c30ff10a6c373c26902e0
treea8b8f53383d758ddc27fc3966efb5d4664f86392
parente3b77c06c8863a53a0d80f7dcaff923c590e3edd
wifi: rtw89: pci: fix interrupt enable mask for HALT C2H of RTL8851B

RTL8851B keeps almost the same interrupt flow as RTL8852A and RTL8852B.
But, it uses a different bitmask for interrupt indicator of FW HALT C2H.
So, we make a chip judgement in pci when configuring interrupt mask.

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/20230508084335.42953-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h