aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorMing Wang <[email protected]>2024-12-05 11:43:07 +0000
committerAlexandre Belloni <[email protected]>2025-01-12 23:39:36 +0000
commit09471d8f5b390883eaf21b917c4bf3ced1b8a1df (patch)
treec513acc61813c5337b6b72efdb2c296d6e16a763 /drivers/rtc/rtc-stm32.c
parentrtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read (diff)
downloadkernel-09471d8f5b390883eaf21b917c4bf3ced1b8a1df.tar.gz
kernel-09471d8f5b390883eaf21b917c4bf3ced1b8a1df.zip
rtc: loongson: clear TOY_MATCH0_REG in loongson_rtc_isr()
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 <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Reviewed-by: Keguang Zhang <[email protected]> # on LS1B Tested-by: Keguang Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
0 files changed, 0 insertions, 0 deletions