From 515f73fcd64cc74ad8ed6bf7b610c12049fa6446 Mon Sep 17 00:00:00 2001 From: Shubhi Garg Date: Tue, 16 Aug 2022 09:04:07 +0000 Subject: [PATCH] rtc: update VRS RTC IRQ to system hwclock Update RTC IRQ occurred to system hwclock by adding rtc_update_irq in irq handler. Bug 3740696 Change-Id: I1ad9c05f759b5b11f8f212eb91a709f1b3625336 Signed-off-by: Shubhi Garg Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2764942 (cherry picked from commit 1926f478143bb1962da8748b6cbc9c094c37a7a4) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2999458 (cherry picked from commit 608ed39528a9735ad229067c8f9c6853d9a33a6e) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007049 Reviewed-by: Bibek Basu GVS: Gerrit_Virtual_Submit --- drivers/rtc/nvvrs-pseq-rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/nvvrs-pseq-rtc.c b/drivers/rtc/nvvrs-pseq-rtc.c index dfb6f234..f22954b7 100644 --- a/drivers/rtc/nvvrs-pseq-rtc.c +++ b/drivers/rtc/nvvrs-pseq-rtc.c @@ -194,6 +194,8 @@ static irqreturn_t nvvrs_rtc_irq_handler(int irq, void *data) if (ret < 0) dev_err(info->dev, "Failed to disable alarm: ret %d\n", ret); + rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); + return IRQ_HANDLED; }