Re: [PATCH v2] rtc: ds1307: provide an indication that the watchdog has fired

2020-07-26 Thread Guenter Roeck
On Mon, Jul 27, 2020 at 11:13:06AM +1200, Chris Packham wrote: > There's not much feedback when the ds1388 watchdog fires. Generally it > yanks on the reset line and the board reboots. Capture the fact that the > watchdog has fired in the past so that userspace can retrieve it via > WDIOC_GETBOOTST

[PATCH v2] rtc: ds1307: provide an indication that the watchdog has fired

2020-07-26 Thread Chris Packham
There's not much feedback when the ds1388 watchdog fires. Generally it yanks on the reset line and the board reboots. Capture the fact that the watchdog has fired in the past so that userspace can retrieve it via WDIOC_GETBOOTSTATUS. This should help distinguish a watchdog triggered reset from a po