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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:25 +0000 (13:07 +0200)
commit79b265a75c69be632033802298eac3ea46fc541f
tree8f7142723ed02d7da078a9f54936404768ac548f
parent52c19dd9eedc43671f52bfb7bfacf00bda70fcb5
irqchip/loongson-liointc: Fix misuse of gc->mask_cache

commit c9c73a05413ea4a465cae1cb3593b01b190a233f upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-loongson-liointc.c