]> git.baikalelectronics.ru Git - 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)
commit0f346b8d0d6f44c4bfb2a403e4c493e977f6cc76
treee08a660bf94481c1bf8edbead873374a4de7763c
parent1ca5df9609aea94ca11713425ad35b799c63c0fc
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