]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/watchdog/imx2_wdt.c
watchdog: imx2_wdt: add pretimeout function support
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Fri, 7 Oct 2016 12:41:39 +0000 (15:41 +0300)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 8 Oct 2016 08:27:30 +0000 (10:27 +0200)
commit39487f6688a557ebfc69816d7e02f210bf8fb2a3
tree225817aa47888bd3d16a2d54012eac326b1fb1ba
parent2accf320786210db92f36866cc71fa894f510a4a
watchdog: imx2_wdt: add pretimeout function support

The change adds watchdog pretimeout notification handling to imx2_wdt
driver, if device data contains information about a valid interrupt.

It is unlikely but still possible (e.g. through a software limitation)
that only a subset of watchdogs on SoC has interrupt lines, hence
functionally the devices from these two groups have different
capabilities, and this is reflected in different watchdog_info
structs assigned to the devices.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/imx2_wdt.c