MLK-15083 watchdog: imx2_wdt: fallback to timeout reset if explicit reset fails
authorOctavian Purdila <octavian.purdila@nxp.com>
Wed, 21 Jun 2017 08:01:23 +0000 (11:01 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:15 +0000 (15:33 -0500)
commit00177c0e4879dc4805511b65c5000c4305ee48e4
tree98311bf950a72cf84780518ac6b9b407344f8f06
parentbdb27b598e8adc08bb8a0c9b3b86aaa6bde6c359
MLK-15083 watchdog: imx2_wdt: fallback to timeout reset if explicit reset fails

If explicit reset fails fallback using the watchdog timeout. We
already have set the timeout counter to 0, but we might need to ping
the watchdog to load the new timeout, if a previous watchdog timeout
value has already been set.

We also decrease the time we spend waiting, to give a chance to log
that the explicit reset failed and that we fallback to watchdog
timeout reset.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
drivers/watchdog/imx2_wdt.c