[PATCH] watchdog: imx2_wdt: restore previous timeout after suspend+resume

2017-12-29 Thread Martin Kaiser
When the watchdog device is suspended, its timeout is set to the maximum value. During resume, the previously set timeout should be restored. This does not work at the moment. The suspend function calls imx2_wdt_set_timeout(wdog, IMX2_WDT_MAX_TIME); and resume reverts this by calling imx2_wdt_s

Re: [PATCH] watchdog: imx2_wdt: restore previous timeout after suspend+resume

2017-12-29 Thread Guenter Roeck
On 12/29/2017 05:59 AM, Martin Kaiser wrote: When the watchdog device is suspended, its timeout is set to the maximum value. During resume, the previously set timeout should be restored. This does not work at the moment. The suspend function calls imx2_wdt_set_timeout(wdog, IMX2_WDT_MAX_TIME);