Skip to contentSkip to conversation

watchdog: pic32: allow two drivers to be compiled on all architectures with COMPILE_TEST

PATCH In review Brian Masney 2 participants 5 messages Feb 22 – Feb 23 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

cover watchdog: pic32: allow two drivers to be compiled on all architectures with COMPILE_TEST

While migrating a pic32 clk driver off of a legacy API, I mistakenly broke one of the drivers, and the issue could have been caught with a simple compile test. Now that the dependent patches have been merged into Linus's tree via the MIPS tree, we can now enable COMPILE_TEST for all of pic32 drivers in this subsystem.

---
Brian Masney (2):
watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST
watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST

 drivers/watchdog/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260222-watchdog-pic32-001b94deace3

Best regards,

Signature · 1 line
Brian Masney <[email protected]>
#1 lore raw

PATCH 1/2 watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST

This driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 5aa5879eeebb ("watchdog:
pic32-wdt: update include to use pic32.h from platform_data") is merged, it's possible to compile this driver on other architectures.

To avoid future breakage of this driver in the future, let's update the Kconfig so that it can be built with COMPILE_TEST enabled on all architectures.

---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ec20bb80bdd5eb9b4852ffc8150e7999a42f7635 100644
@@ -2011,7 +2011,7 @@ config MT7621_WDT
 config PIC32_WDT
 	tristate "Microchip PIC32 hardware watchdog"
 	select WATCHDOG_CORE
-	depends on MACH_PIC32 || (MIPS && COMPILE_TEST)
+	depends on MACH_PIC32 || COMPILE_TEST
 	help
 	  Watchdog driver for the built in watchdog hardware in a PIC32.
 
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST

Quoted 10 lines · Brian Masney

This driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 5aa5879eeebb ("watchdog:
pic32-wdt: update include to use pic32.h from platform_data") is merged, it's possible to compile this driver on other architectures.

To avoid future breakage of this driver in the future, let's update the Kconfig so that it can be built with COMPILE_TEST enabled on all architectures.

Quoted 21 lines
---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ec20bb80bdd5eb9b4852ffc8150e7999a42f7635 100644
@@ -2011,7 +2011,7 @@ config MT7621_WDT
 config PIC32_WDT
 	tristate "Microchip PIC32 hardware watchdog"
 	select WATCHDOG_CORE
-	depends on MACH_PIC32 || (MIPS && COMPILE_TEST)
+	depends on MACH_PIC32 || COMPILE_TEST
 	help
 	  Watchdog driver for the built in watchdog hardware in a PIC32.
 
Signature · 2 lines
-- 
2.53.0
#3 lore raw

PATCH 2/2 watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST

In reply to Brian Masney

This driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 0f8a61ca78d6 ("watchdog:
pic32-dmt: update include to use pic32.h from platform_data") is merged, it's possible to compile this driver on other architectures.

To avoid future breakage of this driver in the future, let's update the Kconfig so that it can be built with COMPILE_TEST enabled on all architectures.

---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index ec20bb80bdd5eb9b4852ffc8150e7999a42f7635..105d08ab8715be8712877b8d5a0fbfd0038fb049 100644
@@ -2024,7 +2024,7 @@ config PIC32_WDT
 config PIC32_DMT
 	tristate "Microchip PIC32 Deadman Timer"
 	select WATCHDOG_CORE
-	depends on MACH_PIC32 || (MIPS && COMPILE_TEST)
+	depends on MACH_PIC32 || COMPILE_TEST
 	help
 	  Watchdog driver for PIC32 instruction fetch counting timer. This
 	  specific timer is typically be used in mission critical and safety
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST

Quoted 10 lines · Brian Masney

This driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 0f8a61ca78d6 ("watchdog:
pic32-dmt: update include to use pic32.h from platform_data") is merged, it's possible to compile this driver on other architectures.

To avoid future breakage of this driver in the future, let's update the Kconfig so that it can be built with COMPILE_TEST enabled on all architectures.

Quoted 21 lines
---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index ec20bb80bdd5eb9b4852ffc8150e7999a42f7635..105d08ab8715be8712877b8d5a0fbfd0038fb049 100644
@@ -2024,7 +2024,7 @@ config PIC32_WDT
 config PIC32_DMT
 	tristate "Microchip PIC32 Deadman Timer"
 	select WATCHDOG_CORE
-	depends on MACH_PIC32 || (MIPS && COMPILE_TEST)
+	depends on MACH_PIC32 || COMPILE_TEST
 	help
 	  Watchdog driver for PIC32 instruction fetch counting timer. This
 	  specific timer is typically be used in mission critical and safety
Signature · 2 lines
-- 
2.53.0