Re: [PATCH v2 04/22] watchdog: ziirave_wdt: Don't bail out on unexpected timeout value

2019-08-15 Thread Guenter Roeck
On Mon, Aug 12, 2019 at 01:08:48PM -0700, Andrey Smirnov wrote: > Reprogramming bootloader on watchdog MCU will result in reported > default timeout value of "0". That in turn will be unnecessarily > rejected by the driver as invalid device (-ENODEV). Simplify probe to > read stored timeout value,

[PATCH v2 04/22] watchdog: ziirave_wdt: Don't bail out on unexpected timeout value

2019-08-12 Thread Andrey Smirnov
Reprogramming bootloader on watchdog MCU will result in reported default timeout value of "0". That in turn will be unnecessarily rejected by the driver as invalid device (-ENODEV). Simplify probe to read stored timeout value, set it to a sane default if it is bogus, and then program that value unc