]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers: watchdog: stm32_iwdg: set WDOG_HW_RUNNING at probe
authorChristophe Roullier <christophe.roullier@st.com>
Fri, 22 Nov 2019 13:22:46 +0000 (14:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:34:18 +0000 (16:34 -0500)
commit30dd20c6d0e34d99a0a2b697b2f351fc2658f2c8
treeef31f41835481e519b5da79d43184b5e131268a2
parent8dfa11837606a7f46735207fe4382d5f2441db7d
drivers: watchdog: stm32_iwdg: set WDOG_HW_RUNNING at probe

commit 85fdc63fe256b595f923a69848cd99972ff446d8 upstream.

If the watchdog hardware is already enabled during the boot process,
when the Linux watchdog driver loads, it should start/reset the watchdog
and tell the watchdog framework. As a result, ping can be generated from
the watchdog framework (if CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is set),
until the userspace watchdog daemon takes over control

Fixes:4332d113c66a ("watchdog: Add STM32 IWDG driver")

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191122132246.8473-1-christophe.roullier@st.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/stm32_iwdg.c