Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: ep93xx_wdt: Fix timeout after conversion to watchdog core

After the conversion of this driver to the watchdog core, I noticed that we
miss setting the initial timeout of the wdt device.
This results in a failure of the WDIOC_GETTIMEOUT ioctl call.

Reviewed-by: Mika Westerberg <mika.westerberg@iki.fi>
Tested-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Mika Westerberg and committed by
Wim Van Sebroeck
59dcf1eb e12a679d

+1
+1
drivers/watchdog/ep93xx_wdt.c
··· 139 139 140 140 val = readl(mmio_base + EP93XX_WATCHDOG); 141 141 ep93xx_wdt_wdd.bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0; 142 + ep93xx_wdt_wdd.timeout = timeout; 142 143 143 144 watchdog_set_nowayout(&ep93xx_wdt_wdd, nowayout); 144 145