summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiu Dalin <liudalin@kylinsec.com.cn>2025-05-09 11:44:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 16:32:10 +0300
commit9137bd312b288c98dcd2385f4b4eb16b69cbc504 (patch)
treeab7aaebec12c093a02c910f05b892c0347cc426a /include
parent7b264700708e51a28d5017f7a1ef62d9e1efef75 (diff)
downloadlinux-9137bd312b288c98dcd2385f4b4eb16b69cbc504.tar.xz
rtc: loongson: Add missing alarm notifications for ACPI RTC events
[ Upstream commit 5af9f1fa576874b24627d4c05e3a84672204c200 ] When an application sets and enables an alarm on Loongson RTC devices, the alarm notification fails to propagate to userspace because the ACPI event handler omits calling rtc_update_irq(). As a result, processes waiting via select() or poll() on RTC device files fail to receive alarm notifications. The ACPI interrupt is also triggered multiple times. In loongson_rtc_handler, we need to clear TOY_MATCH0_REG to resolve this issue. Fixes: 09471d8f5b39 ("rtc: loongson: clear TOY_MATCH0_REG in loongson_rtc_isr()") Fixes: 1b733a9ebc3d ("rtc: Add rtc driver for the Loongson family chips") Signed-off-by: Liu Dalin <liudalin@kylinsec.com.cn> Reviewed-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://lore.kernel.org/r/20250509084416.7979-1-liudalin@kylinsec.com.cn Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions