summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorMing Wang <wangming01@loongson.cn>2024-12-05 19:43:07 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-08 09:58:01 +0100
commit589444be701d62555216c0f7c2b31d31e6a6a919 (patch)
tree9339e01654c18224fda79d4f28dc1b988c8bba36 /scripts/patch-kernel
parente5e06455760f2995b16a176033909347929d1128 (diff)
downloadlinux-589444be701d62555216c0f7c2b31d31e6a6a919.tar.gz
linux-589444be701d62555216c0f7c2b31d31e6a6a919.tar.bz2
linux-589444be701d62555216c0f7c2b31d31e6a6a919.zip
rtc: loongson: clear TOY_MATCH0_REG in loongson_rtc_isr()
[ Upstream commit 09471d8f5b390883eaf21b917c4bf3ced1b8a1df ] The TOY_MATCH0_REG should be cleared to 0 in the RTC interrupt handler, otherwise the interrupt cannot be cleared, which will cause the loongson_rtc_isr() to be triggered multiple times. The previous code cleared TOY_MATCH0_REG in the loongson_rtc_handler(), which is an ACPI interrupt. This did not prevent loongson_rtc_isr() from being triggered multiple times. This commit moves the clearing of TOY_MATCH0_REG to the loongson_rtc_isr() to ensure that the interrupt is properly cleared. Fixes: 1b733a9ebc3d ("rtc: Add rtc driver for the Loongson family chips") Signed-off-by: Ming Wang <wangming01@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Reviewed-by: Keguang Zhang <keguang.zhang@gmail.com> # on LS1B Tested-by: Keguang Zhang <keguang.zhang@gmail.com> Link: https://lore.kernel.org/r/20241205114307.1891418-1-wangming01@loongson.cn Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions