Skip to contentSkip to conversation

Rewriting of alim1535 to use watchdog subsystem

PATCH New Mark Balantzyan 1 participant 1 message Aug 2, 2019 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rewriting of alim1535 to use watchdog subsystem

This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By virtue of this, it also fixes a (theoretical) race condition between the formerly arranged ali_timeout_bits and ali_settimer() interoperation.

---
 drivers/watchdog/Kconfig        |   1 +
 drivers/watchdog/alim1535_wdt.c | 275 +++++---------------------------
 2 files changed, 37 insertions(+), 239 deletions(-)
drivers/watchdog/Kconfig +1 -0
index 9af07fd9..980b0c90 100644
@@ -853,6 +853,7 @@ config ADVANTECH_WDT
 
 config ALIM1535_WDT
 	tristate "ALi M1535 PMU Watchdog Timer"
+	select WATCHDOG_CORE
 	depends on X86 && PCI
 	---help---
 	  This is the driver for the hardware watchdog on the ALi M1535 PMU.
drivers/watchdog/alim1535_wdt.c +36 -239

371 lines not on this page · raw message

Signature · 1 line
2.17.1