]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf2127: handle boot-enabled watchdog feature
authorMartin Hundebøll <martin@geanix.com>
Mon, 21 Oct 2019 08:08:38 +0000 (10:08 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 21 Oct 2019 08:24:18 +0000 (10:24 +0200)
commit0a62c50d911556579f3cb13373c6699050616ea9
tree1ed6392a0a586e92a3b2d6ec082dacf75e6e4ed8
parentb41cff8876aa216ba5769de97b3395a03171ad7a
rtc: pcf2127: handle boot-enabled watchdog feature

Linux should handle when the pcf2127 watchdog feature is enabled by the
bootloader. This is done by checking the watchdog timer value during
init, and set the WDOG_HW_RUNNING flag if the value differs from zero.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191021080838.2789-1-martin@geanix.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2127.c