Re: [PATCH v2] watchdog: permit `wd 0` for non-stoppable, but inactive, watchdogs

2020-06-23 Thread Sascha Hauer
On Mon, Jun 22, 2020 at 05:11:15PM +0200, Ahmad Fatoum wrote: > A watchdog that can't be stopped returns -ENOSYS on set_timeout(0). > If the watchdog supports communicating whether it's running, we could > still allow `wd 0`, if it hasn't been started yet. > > Setting device parameter .priority=0

[PATCH v2] watchdog: permit `wd 0` for non-stoppable, but inactive, watchdogs

2020-06-22 Thread Ahmad Fatoum
A watchdog that can't be stopped returns -ENOSYS on set_timeout(0). If the watchdog supports communicating whether it's running, we could still allow `wd 0`, if it hasn't been started yet. Setting device parameter .priority=0 disables a watchdog. One would expect this to always succeed for a