mt76: mt76x02: clean up and fix interrupt masking in the irq handler
authorFelix Fietkau <nbd@nbd.name>
Fri, 7 Aug 2020 20:05:17 +0000 (22:05 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:14 +0000 (18:10 +0200)
commit2c270b0e51ad5a29cf01e1b8d3d651b185d3d3b5
treec52ad13aeb47e98a7363bd91bad9f48c0e3f503d
parent40fde8c486950d03eb1ed76802c4e5a41ad94421
mt76: mt76x02: clean up and fix interrupt masking in the irq handler

Only clear unmasked interrupts. If an interrupt is temporarily masked,
its pending events need to be processed later, even if another interrupt
happened in the mean time.
Disable interrupts in one call before scheduling

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c