Skip to contentSkip to conversation

watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

PATCH New Christophe Leroy 3 participants 3 messages Feb 26, 2020 – Feb 28, 2020 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

Commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") introduced an automatic selection of CONFIG_WATCHDOG by CONFIG_WDT. But for boards selecting CONFIG_HW_WATCHDOG, like boards have a powerpc 8xx, CONFIG_WATCHDOG shall not be selected as they are mutually exclusive.

Make CONFIG_WATCHDOG dependent on !CONFIG_HW_WATCHDOG

Fixes 06985289d452 ("watchdog: Implement generic watchdog_reset() version")
Cc Stefan Roese <[email protected]>
---
 drivers/watchdog/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/Kconfig +1 -0
index fbb561b995f1..d24c1e48353f 100644
@@ -2,6 +2,7 @@ menu "Watchdog Timer Support"
 
 config WATCHDOG
 	bool "Enable U-Boot watchdog reset"
+	depends on !HW_WATCHDOG
 	help
 	  This option enables U-Boot watchdog support where U-Boot is using
 	  watchdog_reset function to service watchdog device in U-Boot. Enable
Signature · 1 line
2.25.0
#1 lore raw

PATCH 1/1 watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

Quoted 11 lines · Christophe Leroy

Commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") introduced an automatic selection of CONFIG_WATCHDOG by CONFIG_WDT. But for boards selecting CONFIG_HW_WATCHDOG, like boards have a powerpc 8xx, CONFIG_WATCHDOG shall not be selected as they are mutually exclusive.

Make CONFIG_WATCHDOG dependent on !CONFIG_HW_WATCHDOG

Fixes 06985289d452 ("watchdog: Implement generic watchdog_reset() version")
Cc Stefan Roese <[email protected]>

Thanks,
Stefan

#2 lore raw

PATCH 1/1 watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

In reply to Christophe Leroy
Quoted 6 lines · Christophe Leroy

Commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") introduced an automatic selection of CONFIG_WATCHDOG by CONFIG_WDT. But for boards selecting CONFIG_HW_WATCHDOG, like boards have a powerpc 8xx, CONFIG_WATCHDOG shall not be selected as they are mutually exclusive.

Quoted 6 lines

Make CONFIG_WATCHDOG dependent on !CONFIG_HW_WATCHDOG

Fixes 06985289d452 ("watchdog: Implement generic watchdog_reset() version")
Cc Stefan Roese <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200228/71aa035e/attachment.sig>