From 34fc29677c41e036271eb71faaeeb3ef07b51646 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 23 Jan 2018 21:05:19 -0800 Subject: watchdog: Make it possible to track initialization state Adding an initialization value to the dbus api allows the host ipmi daemon or any other user of the host watchdog api to determine if they have already initialized the host watchdog without keeping any of their own state. This is useful for being able to report a not initialized error to the host system when it makes a watchdog reset call. Since this value is defined by default as false, whenever the watchdog daemon restarts and loses state the host will be able to see that it has not yet been initialized. The host can then reinitialize the watchdog if implemented according to the spec. As this value is inteded purely for state tracking on the client side, the server does not need to modify or even read this value. Change-Id: I224995fdb09fcf21ba729dbd88e41a31e82eacad Signed-off-by: William A. Kennington III --- xyz/openbmc_project/State/Watchdog.interface.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xyz/openbmc_project/State/Watchdog.interface.yaml b/xyz/openbmc_project/State/Watchdog.interface.yaml index 59b54b0..e48ac4b 100644 --- a/xyz/openbmc_project/State/Watchdog.interface.yaml +++ b/xyz/openbmc_project/State/Watchdog.interface.yaml @@ -1,6 +1,12 @@ description: > Implement the watchdog function. + properties: + - name: Initialized + type: boolean + description: > + Whether the host has configured the watchdog yet. + default: false - name: Enabled type: boolean description: > -- cgit v1.2.1