[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201127161127.GB9881@roeck-us.net>
Date: Fri, 27 Nov 2020 08:11:27 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Qiang Zhao <qiang.zhao@....com>
Cc: wim@...ux-watchdog.org, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wdt: sp805: add watchdog_stop on reboot
On Fri, Nov 27, 2020 at 03:52:17PM +0800, Qiang Zhao wrote:
> From: Zhao Qiang <qiang.zhao@....com>
>
> Call watchdog_stop_on_reboot in probe func
>
> Signed-off-by: Zhao Qiang <qiang.zhao@....com>
Reviewed-by: Guenter Roeck <linux@...ck-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
>
Powered by blists - more mailing lists