public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 1/2] watchdog: tangier: Replace unused constant with a comment
@ 2019-06-21 10:28 Andy Shevchenko
  2019-06-21 10:28 ` [U-Boot] [PATCH v3 2/2] watchdog: tangier: Convert to use WDT class Andy Shevchenko
  2019-06-22 14:23 ` [U-Boot] [PATCH v3 1/2] watchdog: tangier: Replace unused constant with a comment Bin Meng
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2019-06-21 10:28 UTC (permalink / raw)
  To: u-boot

The default timeout value had been left in order to leave some traces
about default setup of watchdog done by firmware.

For better understanding and compiler burden, replace it with a comment.

Suggested-by: Stefan Roese <sr@denx.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/watchdog/tangier_wdt.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/watchdog/tangier_wdt.c b/drivers/watchdog/tangier_wdt.c
index be4a8f467a..b2f40ef057 100644
--- a/drivers/watchdog/tangier_wdt.c
+++ b/drivers/watchdog/tangier_wdt.c
@@ -10,7 +10,12 @@
 #define WDT_PRETIMEOUT		15
 #define WDT_TIMEOUT_MIN		(1 + WDT_PRETIMEOUT)
 #define WDT_TIMEOUT_MAX		170
-#define WDT_DEFAULT_TIMEOUT	90
+
+/*
+ * Note, firmware chooses 90 seconds as a default timeout for watchdog on
+ * Intel Tangier SoC. It means that without handling it in the running code
+ * the reboot will happen.
+ */
 
 #ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS
 #define WATCHDOG_HEARTBEAT 60000
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-22 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-21 10:28 [U-Boot] [PATCH v3 1/2] watchdog: tangier: Replace unused constant with a comment Andy Shevchenko
2019-06-21 10:28 ` [U-Boot] [PATCH v3 2/2] watchdog: tangier: Convert to use WDT class Andy Shevchenko
2019-06-22 14:29   ` Bin Meng
2019-06-22 14:23 ` [U-Boot] [PATCH v3 1/2] watchdog: tangier: Replace unused constant with a comment Bin Meng
2019-06-22 14:29   ` Bin Meng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox