* [PATCH] wdt: sp805: add watchdog_stop on reboot
@ 2020-11-27 7:52 Qiang Zhao
2020-11-27 16:11 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Qiang Zhao @ 2020-11-27 7:52 UTC (permalink / raw)
To: wim, linux; +Cc: linux-watchdog, linux-kernel, Zhao Qiang
From: Zhao Qiang <qiang.zhao@nxp.com>
Call watchdog_stop_on_reboot in probe func
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
drivers/watchdog/sp805_wdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c
index 190d26e..958dc32 100644
--- a/drivers/watchdog/sp805_wdt.c
+++ b/drivers/watchdog/sp805_wdt.c
@@ -291,6 +291,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
}
+ watchdog_stop_on_reboot(&wdt->wdd);
ret = watchdog_register_device(&wdt->wdd);
if (ret)
goto err;
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] wdt: sp805: add watchdog_stop on reboot
2020-11-27 7:52 [PATCH] wdt: sp805: add watchdog_stop on reboot Qiang Zhao
@ 2020-11-27 16:11 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2020-11-27 16:11 UTC (permalink / raw)
To: Qiang Zhao; +Cc: wim, linux-watchdog, linux-kernel
On Fri, Nov 27, 2020 at 03:52:17PM +0800, Qiang Zhao wrote:
> From: Zhao Qiang <qiang.zhao@nxp.com>
>
> Call watchdog_stop_on_reboot in probe func
>
> Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/sp805_wdt.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c
> index 190d26e..958dc32 100644
> --- a/drivers/watchdog/sp805_wdt.c
> +++ b/drivers/watchdog/sp805_wdt.c
> @@ -291,6 +291,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
> set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
> }
>
> + watchdog_stop_on_reboot(&wdt->wdd);
> ret = watchdog_register_device(&wdt->wdd);
> if (ret)
> goto err;
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, back to index
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 7:52 [PATCH] wdt: sp805: add watchdog_stop on reboot Qiang Zhao
2020-11-27 16:11 ` Guenter Roeck
Linux-Watchdog Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-watchdog/0 linux-watchdog/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-watchdog linux-watchdog/ https://lore.kernel.org/linux-watchdog \
linux-watchdog@vger.kernel.org
public-inbox-index linux-watchdog
Example config snippet for mirrors
Newsgroup available over NNTP:
nntp://nntp.lore.kernel.org/org.kernel.vger.linux-watchdog
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git