]> git.baikalelectronics.ru Git - kernel.git/commit
rtw89: pci: only mask out INT indicator register for disable interrupt v1
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 16 May 2022 00:52:15 +0000 (08:52 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 17 May 2022 15:32:00 +0000 (18:32 +0300)
commitf381b421d48b474e9aec74f10be5b8687002efaa
tree095783f675d34417330d123ceb5b67c546dd88a8
parenta701d013e8deebf53d4851e4032b18c9ef6108ee
rtw89: pci: only mask out INT indicator register for disable interrupt v1

The design of INT indicator register (R_AX_PCIE_HIMR00_V1) is to reduce IO
during frequent interrupts, because it can stop chip sending interrupt to
host if we just set this indicator to 0, not all IMR(s). This indicator
register looks like a root interrupt controller of wifi chip.

However, we can't set all other IMR(s) to 0 during we are running on
interrupt service routine, or the indicator register can't reflect the
status of certain interrupt happened during this period, and then miss
some interrupts especially SER interrupt events.

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