Re: [PATCH V2] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-14 Thread Guenter Roeck
On 4/14/21 12:28 AM, Wang Qing wrote: > Use the bark interrupt as the pretimeout notifier if available. > > By default, the pretimeout notification shall occur one second earlier > than the timeout. > > V2: > - panic() by default if WATCHDOG_PRETIMEOUT_GOV is not enabled > > Signed-off-by: Wang

[PATCH V2] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-14 Thread Wang Qing
Use the bark interrupt as the pretimeout notifier if available. By default, the pretimeout notification shall occur one second earlier than the timeout. V2: - panic() by default if WATCHDOG_PRETIMEOUT_GOV is not enabled Signed-off-by: Wang Qing --- drivers/watchdog/mtk_wdt.c | 57 +