]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/irqchip/irq-loongson-liointc.c
irqchip/loongson-liointc: Fix misuse of gc->mask_cache
authorHuacai Chen <chenhc@lemote.com>
Thu, 30 Jul 2020 08:51:28 +0000 (16:51 +0800)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Jul 2020 11:57:51 +0000 (12:57 +0100)
commitc9c73a05413ea4a465cae1cb3593b01b190a233f
tree369df2c152c9fde3670c034536114e7c297b7523
parent8fea4b2e804ab8ff93bd0d67a3dadee1d1a3e24f
irqchip/loongson-liointc: Fix misuse of gc->mask_cache

In gc->mask_cache bits, 1 means enabled and 0 means disabled, but in the
loongson-liointc driver mask_cache is misused by reverting its meaning.
This patch fix the bug and update the comments as well.

Fixes: dbb152267908c4b2c3639492a ("irqchip: Add driver for Loongson I/O Local Interrupt Controller")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/1596099090-23516-4-git-send-email-chenhc@lemote.com
drivers/irqchip/irq-loongson-liointc.c