Skip to contentSkip to conversation

watchdog: Delete the cpu5wdt driver

PATCH New Jean Delvare 1 participant 1 message Oct 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 watchdog: Delete the cpu5wdt driver

This driver has a number of issues (accesses arbitrary I/O ports without identifying the hardware, doesn't document what hardware it supports, suspiciously inconsistent locking model, doesn't implement WDIOC_SETTIMEOUT, potential integer overflow...)

The driver was added in 2003 and there's no evidence that it has any recent user, all changes seem to be tree-wide, subsystem-wide, or the result of static code analysis. So I believe we should simply drop this legacy piece of code.

Message-ID: <[email protected]>

---
Changes in v2:
* Rebased on top of v6.12-rc4.

 Documentation/watchdog/watchdog-parameters.rst |   10 
 drivers/watchdog/Kconfig                       |    8 
 drivers/watchdog/Makefile                      |    1 
 drivers/watchdog/cpu5wdt.c                     |  284 -------------------------
 4 files changed, 303 deletions(-)
Documentation/watchdog/watchdog-parameters.rst +0 -10
@@ -120,16 +120,6 @@ modules.
 
 -------------------------------------------------
 
-cpu5wdt:
-    port:
-	base address of watchdog card, default is 0x91
-    verbose:
-	be verbose, default is 0 (no)
-    ticks:
-	count down ticks, default is 10000
-
--------------------------------------------------
-
 cpwd:
     wd0_timeout:
 	Default watchdog0 timeout in 1/10secs
drivers/watchdog/Kconfig +0 -8
@@ -1533,14 +1533,6 @@ config SBC7240_WDT
 	  To compile this driver as a module, choose M here: the
 	  module will be called sbc7240_wdt.
 
-config CPU5_WDT
-	tristate "SMA CPU5 Watchdog"
-	depends on (X86 || COMPILE_TEST) && HAS_IOPORT
-	help
-	  TBD.
-	  To compile this driver as a module, choose M here: the
-	  module will be called cpu5wdt.
-
 config SMSC_SCH311X_WDT
 	tristate "SMSC SCH311X Watchdog Timer"
 	depends on (X86 || COMPILE_TEST) && HAS_IOPORT
drivers/watchdog/Makefile +0 -1
@@ -137,7 +137,6 @@ obj-$(CONFIG_RDC321X_WDT) += rdc321x_wdt
 obj-$(CONFIG_60XX_WDT) += sbc60xxwdt.o
 obj-$(CONFIG_SBC8360_WDT) += sbc8360.o
 obj-$(CONFIG_SBC7240_WDT) += sbc7240_wdt.o
-obj-$(CONFIG_CPU5_WDT) += cpu5wdt.o
 obj-$(CONFIG_SMSC_SCH311X_WDT) += sch311x_wdt.o
 obj-$(CONFIG_SMSC37B787_WDT) += smsc37b787_wdt.o
 obj-$(CONFIG_TQMX86_WDT) += tqmx86_wdt.o
drivers/watchdog/cpu5wdt.c deleted +0 -284

284 lines not on this page · raw message

Signature · 2 lines
Jean Delvare
SUSE L3 Support