]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: imx_sc_wdt: Pretimeout should follow SCU firmware format
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 9 Oct 2019 07:37:47 +0000 (15:37 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2019 15:58:12 +0000 (16:58 +0100)
commitc2a1973af4fcf3b1a8df04a53b266adb2f721561
treeafb9fd63cd062d11ff8729c09abb5f9c725fbc01
parent29d8b49b28d8f551ee4da184daa00ffdbf3af764
watchdog: imx_sc_wdt: Pretimeout should follow SCU firmware format

SCU firmware calculates pretimeout based on current time stamp
instead of watchdog timeout stamp, need to convert the pretimeout
to SCU firmware's timeout value.

Fixes: d621bac75d62 ("watchdog: imx_sc: Add pretimeout support")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx_sc_wdt.c