diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-09-23 15:43:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-09-23 15:43:30 +0000 |
commit | 35fb42beaaaddababe78fe1e97fa730a35aef423 (patch) | |
tree | bf1eb8cd45afd817af902d07058d8e41e4176843 | |
parent | 2bff540bda42936c0beff4136cf0f73466f9735c (diff) | |
download | upstream-35fb42beaaaddababe78fe1e97fa730a35aef423.tar.gz upstream-35fb42beaaaddababe78fe1e97fa730a35aef423.tar.bz2 upstream-35fb42beaaaddababe78fe1e97fa730a35aef423.zip |
AR7 watchdog supports magic close
This patch adds the magic close flag (stopping the watchdog on an expected close
by wrting 'V' to the device before closing it) to the watchdogs list, which the
AR7 watchdog code actually supports.
Signed-off-by: Axel Gembe <ago@bastart.eu.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12666 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c index cdaab8c3d3..97cd8105a9 100644 --- a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c +++ b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c @@ -243,7 +243,7 @@ static int ar7_wdt_ioctl(struct inode *inode, struct file *file, static struct watchdog_info ident = { .identity = LONGNAME, .firmware_version = 1, - .options = (WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING), + .options = (WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING), }; int new_margin; |