]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
watchdog: bcm2835_wdt: set WDOG_HW_RUNNING bit when appropriate
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Mon, 12 Dec 2016 09:48:43 +0000 (10:48 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 16 Dec 2016 14:53:55 +0000 (06:53 -0800)
commit054ae19422859c394d5f26a8756ed57d332f6284
treee08a660bf94481c1bf8edbead873374a4de7763c
parent1d8565ee4f5bd9fccb738e53d6b9fc7a559f7d2b
watchdog: bcm2835_wdt: set WDOG_HW_RUNNING bit when appropriate

A bootloader may start the watchdog device before handing control to
the kernel - in that case, we should tell the kernel about it so the
watchdog framework can keep it alive until userspace opens
/dev/watchdog0.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/bcm2835_wdt.c