RE: [PATCH] watchdog: sbsa_gwdt: add shutdown hook to driver

From: Qiang Zhao
Date: Thu Aug 27 2020 - 03:56:06 EST


On 8/24/20 21:29 AM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:

> -----Original Message-----
> From: Guenter Roeck <groeck7@xxxxxxxxx> On Behalf Of Guenter Roeck
> Sent: 2020年8月24日 21:29
> To: Qiang Zhao <qiang.zhao@xxxxxxx>; wim@xxxxxxxxxxxxxxxxxx
> Cc: linux-watchdog@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] watchdog: sbsa_gwdt: add shutdown hook to driver
>
> On 8/24/20 1:18 AM, Qiang Zhao wrote:
> > From: Zhao Qiang <qiang.zhao@xxxxxxx>
> >
> > Kexec maybe need more time than timeout of wdt(sbsa) which will reset
> > the system.
> > So it is necessary to add shutdown hook to disable the wdt when run
> > kexec.
> >
>
> Please explain why watchdog_stop_on_reboot() does not work.
>

Thank you for your comments, it is helpful.
I investigate this issue again, found that this watchdog are enabled by uboot,
Meanwhile in kernel, it is not the default watchdog, in another words, it is not active in kernel.
So watchdog_stop_on_reboot() does not work.
This patch is not the right solution for the situation, I will abandon it.

Best Regards
Qiang Zhao