irqchip/loongson-htvec: Fix initial interrupt clearing
authorHuacai Chen <chenhc@lemote.com>
Fri, 11 Sep 2020 10:26:18 +0000 (18:26 +0800)
committerMarc Zyngier <maz@kernel.org>
Sun, 13 Sep 2020 14:30:11 +0000 (15:30 +0100)
commit1d1e5630de78f7253ac24b92cee6427c3ff04d56
tree5bb41a0c115cc03155de5f3b05cc6018f2f80c2f
parent8ddf1905a904ca86d71ca1c435e4b0b2a0b70df8
irqchip/loongson-htvec: Fix initial interrupt clearing

In htvec_reset() only the first group of initial interrupts is cleared.
This sometimes causes spurious interrupts, so let's clear all groups.

While at it, fix the nearby comment that to match the reality of what
the driver does.

Fixes: 818e915fbac518e8c78e1877 ("irqchip: Add Loongson HyperTransport Vector support")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/1599819978-13999-2-git-send-email-chenhc@lemote.com
drivers/irqchip/irq-loongson-htvec.c