Skip to contentSkip to conversation

watchdog: lenovo_se30_wdt: Watchdog driver for Lenovo SE30 platform

PATCH In review Mark Pearson 2 participants 3 messages Jan 31, 2025 – Feb 1, 2025 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 watchdog: lenovo_se30_wdt: Watchdog driver for Lenovo SE30 platform

Watchdog driver implementation for Lenovo SE30 platform.

---
Changes in v2:
- Removed acpi.h include as not needed
- Cleaned up define formatting as requested
- Rewrote timeout loop in shm_get_ready to use more sensible timeouts.
- Moved mem region request into probe. This created some opportunities to simplify the lenovo_se30_wdt structure.
Changes in v3:
- Removed set_timeout function as it's not needed

 drivers/watchdog/Kconfig           |  12 +
 drivers/watchdog/Makefile          |   1 +
 drivers/watchdog/lenovo_se30_wdt.c | 393 +++++++++++++++++++++++++++++
 3 files changed, 406 insertions(+)
 create mode 100644 drivers/watchdog/lenovo_se30_wdt.c
drivers/watchdog/Kconfig +12 -0
index f81705f8539a..c73e8f0e436c 100644
@@ -279,6 +279,18 @@ config LENOVO_SE10_WDT
 	  This driver can also be built as a module. If so, the module
 	  will be called lenovo-se10-wdt.
 
+config LENOVO_SE30_WDT
+	tristate "Lenovo SE30 Watchdog"
+	depends on (X86 && DMI) || COMPILE_TEST
+	depends on HAS_IOPORT
+	select WATCHDOG_CORE
+	help
+	  If you say yes here you get support for the watchdog
+	  functionality for the Lenovo SE30 platform.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called lenovo-se30-wdt.
+
 config MENF21BMC_WATCHDOG
 	tristate "MEN 14F021P00 BMC Watchdog"
 	depends on MFD_MENF21BMC || COMPILE_TEST
drivers/watchdog/Makefile +1 -0
index 8411626fa162..c9482904bf87 100644
@@ -124,6 +124,7 @@ obj-$(CONFIG_I6300ESB_WDT) += i6300esb.o
 obj-$(CONFIG_IE6XX_WDT) += ie6xx_wdt.o
 obj-$(CONFIG_ITCO_WDT) += iTCO_wdt.o
 obj-$(CONFIG_LENOVO_SE10_WDT) += lenovo_se10_wdt.o
+obj-$(CONFIG_LENOVO_SE30_WDT) += lenovo_se30_wdt.o
 ifeq ($(CONFIG_ITCO_VENDOR_SUPPORT),y)
 obj-$(CONFIG_ITCO_WDT) += iTCO_vendor_support.o
 endif
drivers/watchdog/lenovo_se30_wdt.c new file +393 -0

393 lines not on this page · raw message

Signature · 1 line
2.34.1