summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-11-22 14:39:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-25 09:32:15 +0100
commit1d86578493aaddf04672731275e5e2df0f2dda94 (patch)
treef9c0564aba14a88bfc9fb33125c8f3a6ae2ee51d /drivers
parent0ae3c6ab8eaf2291905541914d972320cfa0910c (diff)
downloadbarebox-1d86578493aaddf04672731275e5e2df0f2dda94.tar.gz
barebox-1d86578493aaddf04672731275e5e2df0f2dda94.tar.xz
watchdog: stm32_iwdg: explicitly set .running to UNSUPPORTED
I've spent some time trying to get the ONF (Watchdog enable status) bit in the IWDG_SR register to read as something other than zero. It has since been confirmed to be non-functional[1]. To avoid someone else spending time on this, document that running status is unsupported on this hardware explicitly. No functional change as UNSUPPORTED is already the default. [1]: https://www.spinics.net/lists/arm-kernel/msg770527.html Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/stm32_iwdg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c
index 4d252e558c..9fcb5e420d 100644
--- a/drivers/watchdog/stm32_iwdg.c
+++ b/drivers/watchdog/stm32_iwdg.c
@@ -256,6 +256,7 @@ static int stm32_iwdg_probe(struct device_d *dev)
wdd->set_timeout = stm32_iwdg_set_timeout;
wdd->timeout_max = (RLR_MAX + 1) * data->max_prescaler * 1000;
wdd->timeout_max /= wd->rate * 1000;
+ wdd->running = WDOG_HW_RUNNING_UNSUPPORTED; /* ONF bit not present in IP */
ret = watchdog_register(wdd);
if (ret) {