Files
linux/drivers/rtc
Liu Dalin f8ca072c3e rtc: loongson: Add missing alarm notifications for ACPI RTC events
[ Upstream commit 5af9f1fa57 ]

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: 09471d8f5b ("rtc: loongson: clear TOY_MATCH0_REG in loongson_rtc_isr()")
Fixes: 1b733a9ebc ("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>
2025-06-19 15:40:29 +02:00
..
2025-03-17 22:55:37 +01:00
2025-03-17 22:55:37 +01:00
2025-01-13 23:07:18 +01:00
2022-06-24 21:24:02 +02:00
2024-01-18 01:00:21 +01:00
2023-10-15 23:01:08 +02:00
2021-04-29 23:03:26 +02:00
2024-08-28 21:54:51 +01:00
2025-01-29 00:42:29 +01:00
2024-11-11 22:13:39 +01:00
2025-03-17 11:52:11 +01:00
2024-05-07 23:40:10 +02:00