]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: keembay: Update WDT pre-timeout during the initialization
authorShruthi Sanil <shruthi.sanil@intel.com>
Mon, 17 May 2021 17:49:45 +0000 (23:19 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 Jun 2021 06:48:53 +0000 (08:48 +0200)
commit2e3d2f288331deaf1b4d239798fda332d5ecaa75
tree4494b92cbbbb2c2b71d7b079350ef0c069996777
parent0bfb8ed727aafd784980161b5dae041075559fb9
watchdog: keembay: Update WDT pre-timeout during the initialization

The pretimeout register has a default reset value. Hence
when a smaller WDT timeout is set which would be lesser than the
default pretimeout, the system behaves abnormally, starts
triggering the pretimeout interrupt even when the WDT is
not enabled, most of the times leading to system crash.
Hence an update in the pre-timeout is also required for the
default timeout that is being configured.

Fixes: e703500d67dc ("watchdog: Add watchdog driver for Intel Keembay Soc")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Kris Pan <kris.pan@intel.com>
Signed-off-by: Shruthi Sanil <shruthi.sanil@intel.com>
Link: https://lore.kernel.org/r/20210517174953.19404-2-shruthi.sanil@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/keembay_wdt.c