Standard watchdog programs try to setup timeout via ioctl and this functionality should be implemented. Timeout value is hardcoded in the hardware but based on Documentation/watchdog/watchdog-api.txt can return the real timeout used in the same variable. Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx> --- drivers/watchdog/of_xilinx_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index 79f358c..a3bbe72 100644 --- a/drivers/watchdog/of_xilinx_wdt.c +++ b/drivers/watchdog/of_xilinx_wdt.c @@ -253,6 +253,7 @@ static long xwdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) xwdt_keepalive(); return 0; + case WDIOC_SETTIMEOUT: case WDIOC_GETTIMEOUT: if (no_timeout) return -ENOTTY; -- 1.8.2.3
Attachment:
pgpKSYYcDkOYQ.pgp
Description: PGP signature