--- zzzz-none-000/linux-4.19.183/drivers/watchdog/watchdog_dev.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/drivers/watchdog/watchdog_dev.c 2023-06-28 08:54:20.000000000 +0000 @@ -878,7 +878,11 @@ /* If the watchdog was not stopped, send a keepalive ping */ if (err < 0) { +#if defined(CONFIG_BCM_KF_WDT) + pr_debug("watchdog%d: watchdog did not stop!\n", wdd->id); +#else pr_crit("watchdog%d: watchdog did not stop!\n", wdd->id); +#endif watchdog_ping(wdd); } @@ -1127,6 +1131,17 @@ return err; } +#if defined(CONFIG_BCM_KF_WDT) +int watchdog_dev_force_disable( void ) +{ + if( old_wd_data ) + { + watchdog_stop(old_wd_data->wdd); + } + return 0; +} +#endif + /* * watchdog_dev_exit: exit dev part of watchdog core *