mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
watchdog: WatchDog Timer Driver Core - Add Magic Close feature
Add support for the Magic Close feature to the WatchDog Timer Driver Core framework. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
014d694e5d
commit
017cf08051
3 changed files with 32 additions and 3 deletions
|
|
@ -127,6 +127,13 @@ bit-operations. The status bits that are defined are:
|
|||
* WDOG_DEV_OPEN: this status bit shows whether or not the watchdog device
|
||||
was opened via /dev/watchdog.
|
||||
(This bit should only be used by the WatchDog Timer Driver Core).
|
||||
* WDOG_ALLOW_RELEASE: this bit stores whether or not the magic close character
|
||||
has been sent (so that we can support the magic close feature).
|
||||
(This bit should only be used by the WatchDog Timer Driver Core).
|
||||
|
||||
Note: The WatchDog Timer Driver Core supports the magic close feature. To use
|
||||
the magic close feature you must set the WDIOF_MAGICCLOSE bit in the options
|
||||
field of the watchdog's info structure.
|
||||
|
||||
To get or set driver specific data the following two helper functions should be
|
||||
used:
|
||||
|
|
|
|||
Loading…
Reference in a new issue