Hi Wim,
This code not only converts the watchdog to the new framework,
but it also adds the is_enable related code changes which should
be a seperate patch.
So I took your original patch and changed it to the below at91sam9_wdt
watchdog conversion patch. Note: this is also without Fabio's timeout-sec
patch, this one needs to come after the conversion.
Please test this patch and let me know if this works (the watchdog should
behave the same before as after this patch).
Sorry for so late reply due to Chinese New Year's holiday.
I applied it on the linux-watchdog trees,
and tested it on at91sam9m10g45ek both DT and non-DT support, at91sam9g25ek with DT support.
It works OK after one compilation error fixed.
+ at91wdt_private.next_heartbeat = jiffies + wdd->timeout * HZ;
+ at91wdt_private.next_heartbeat = jiffies + at91_wdt_dev.timeout * HZ;
Thank you very much.
Best Regards,
Wenyou Yang