summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2022-10-04 10:54:36 -0500
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-17 21:06:04 +0000
commit8113d238fb985d73e7607510c89fcc3bfbe98052 (patch)
tree677e1a9c5dbaf311706ec88d0c4ec57da1e4e956
parent3f4033edbbd444bba2068cf80f956a666677d913 (diff)
downloadchrome-ec-firmware-nissa-15217.126.B-cr50_stab.tar.gz
BUG=b:244476137 TEST=none Change-Id: I07b6cf0e65b578aa28a61185ff1e0a7b12a63380 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935022 Reviewed-by: Andrey Pronin <apronin@chromium.org> Commit-Queue: Andrey Pronin <apronin@chromium.org>
-rw-r--r--chip/g/alerts.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/chip/g/alerts.c b/chip/g/alerts.c
index 7396248fc0..d0d0ba8e48 100644
--- a/chip/g/alerts.c
+++ b/chip/g/alerts.c
@@ -116,6 +116,13 @@ static void alert_interrupt_process(int alert)
alert_intr_clear(alert);
}
+#define IGNORE_GLOBALSEC_ALERT(name) \
+ DECLARE_IRQ(GC_IRQNUM_GLOBALSEC_##name##_ALERT_INT, ignore_##name, 1); \
+ void ignore_##name(void) \
+ { \
+ alert_intr_clear(ALERT_NUM_##name); \
+ }
+
#define GLOBALSEC_ALERT_COUNTER(name) \
DECLARE_IRQ(GC_IRQNUM_GLOBALSEC_##name##_ALERT_INT, handler_##name, 1); \
void handler_##name(void) \
@@ -159,7 +166,8 @@ GLOBALSEC_ALERT_COUNTER(KEYMGR0_SHA_FAULT);
GLOBALSEC_ALERT_COUNTER(KEYMGR0_SHA_HKEY);
GLOBALSEC_ALERT_COUNTER(PMU_BATTERY_MON);
GLOBALSEC_ALERT_COUNTER(PMU_PMU_WDOG);
-GLOBALSEC_ALERT_COUNTER(RTC0_RTC_DEAD);
+/* Filter out RTC_DEAD alerts */
+IGNORE_GLOBALSEC_ALERT(RTC0_RTC_DEAD);
GLOBALSEC_ALERT_COUNTER(TEMP0_MAX_TEMP);
GLOBALSEC_ALERT_COUNTER(TEMP0_MAX_TEMP_DIFF);
GLOBALSEC_ALERT_COUNTER(TEMP0_MIN_TEMP);