If the system enters a low power state of standby or suspend, then the watchdog does not reset the system and it continues to sleep forever. For example:
echo "" > /dev/watchdog
echo mem > /sys/power/state
This is not expected behavior - a “watchdog” should not go off to sleep along with the rest of the system.
Who exactly is gonna service that watchdog in suspend?
Nobody. And if the duration of the suspend is longer than the watchdog timeout then the watchdog should reset the system. Because the whole point of a watchdog is to rescue the system out of a state in which it is stuck.
According to the i.MX6ULL Reference Manual (pages 4093-4094), the default operation of the watchdog is to continue the timer during low-power modes. The default value of the WDZST bit of the watchdog control register WDOG_WCR is 0: Continue timer operation.
Unfortunately link to Toradex git you provided is broken, but looks like you selected a wrong branch. List of currently used branches can be found here.
Patch you mentioned is included in our tree. You can check it here.