Optimize the pm8916_wdt.c driver a bit by pinging the watchdog using a write instead of read-modify-write. Also report the reboot reason to userspace and (temporarily) ping the watchdog from the kernel if it was already enabled by the bootloader. --- Changes in v2: Improve error handling (suggested by Guenter) Stephan Gerhold (3): watchdog: pm8916_wdt: Avoid read of write-only PET register watchdog: pm8916_wdt: Report reboot reason watchdog: pm8916_wdt: Handle watchdog enabled by bootloader drivers/watchdog/pm8916_wdt.c | 41 +++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) -- 2.30.2