Thread (6 messages) 6 messages, 3 authors, 2025-01-13

Re: [PATCH v6 1/1] watchdog: aspeed: Update bootstatus handling

From: Guenter Roeck <linux@roeck-us.net>
Date: 2025-01-12 15:20:41
Also in: linux-aspeed, linux-watchdog, lkml

On 1/12/25 00:12, Chin-Ting Kuo wrote:
The boot status in the watchdog device struct is updated during
controller probe stage. Application layer can get the boot status
through the command, cat /sys/class/watchdog/watchdogX/bootstatus.
The bootstatus can be,
WDIOF_CARDRESET => the system is reset by WDT SoC reset.
Others          => other reset events, e.g., power on reset.

On ASPEED platform, the boot status is recorded in the SCU registers.
- AST2400: Only a bit represents for any WDT reset.
- AST2500/AST2600: The reset triggered by different WDT controllers
                    can be distinguished by different SCU bits.

Besides, on AST2400 and AST2500, since alternating boot event is
triggered by WDT SoC reset, it is classified as WDIOF_CARDRESET.

Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help