wifi: rtw89: pci: update interrupt mitigation register for 8922AE
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 10 Nov 2023 01:23:19 +0000 (09:23 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 14 Nov 2023 10:22:42 +0000 (12:22 +0200)
commit0a78bb64a49995c7377b1d716bbff7a9d92212cb
tree116609728a3d43710eaa3869db453f40a28d82f9
parent9f08c77b776976a6eabd9678d77ff9ab4ff4233e
wifi: rtw89: pci: update interrupt mitigation register for 8922AE

To reduce interrupts, configure the mitigation setting of 8922AE when
bringing interface up, and then check situations to decide turning on or
off the function. With this, interrupt count decreases to 20,141 from
202,141 in period of 20 seconds.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231110012319.12727-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/rtw8922ae.c