mbox series

[v2,0/3] watchdog: pm8916_wdt: Some minor improvements

Message ID 20220629084816.125515-1-stephan.gerhold@kernkonzept.com (mailing list archive)
Headers show
Series watchdog: pm8916_wdt: Some minor improvements | expand

Message

Stephan Gerhold June 29, 2022, 8:48 a.m. UTC
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(-)