From: Guenter Roeck <linux@roeck-us.net>
To: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/8] watchdog: w83627hf: Convert to watchdog infrastructure
Date: Mon, 28 Oct 2013 16:10:26 -0700 [thread overview]
Message-ID: <20131028231026.GA16758@roeck-us.net> (raw)
In-Reply-To: <20131028215755.GA13226@spo001.leaseweb.com>
On Mon, Oct 28, 2013 at 10:57:55PM +0100, Wim Van Sebroeck wrote:
> Hi Guenter,
>
> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > ---
> > drivers/watchdog/Kconfig | 1 +
> > drivers/watchdog/w83627hf_wdt.c | 225 +++++++++------------------------------
> > 2 files changed, 51 insertions(+), 175 deletions(-)
> >
> > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> > index 362085d..c73db85 100644
> > --- a/drivers/watchdog/Kconfig
> > +++ b/drivers/watchdog/Kconfig
> > @@ -858,6 +858,7 @@ config VIA_WDT
> > config W83627HF_WDT
> > tristate "W83627HF/W83627DHG Watchdog Timer"
> > depends on X86
> > + select WATCHDOG_CORE
> > ---help---
> > This is the driver for the hardware watchdog on the W83627HF chipset
> > as used in Advantech PC-9578 and Tyan S2721-533 motherboards
> > diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
> > index 92f1326..51a22ab 100644
> > --- a/drivers/watchdog/w83627hf_wdt.c
> > +++ b/drivers/watchdog/w83627hf_wdt.c
> > @@ -1,6 +1,9 @@
> > /*
> > * w83627hf/thf WDT driver
> > *
> > + * (c) Copyright 2013 Guenter Roeck
> > + * converted to watchdog infrastructure
> > + *
> > * (c) Copyright 2007 Vlad Drukker <vlad@storewiz.com>
> > * added support for W83627THF.
> > *
> > @@ -31,42 +34,27 @@
> > #include <linux/module.h>
> > #include <linux/moduleparam.h>
> > #include <linux/types.h>
> > -#include <linux/miscdevice.h>
> > #include <linux/watchdog.h>
> > -#include <linux/fs.h>
> > #include <linux/ioport.h>
> > #include <linux/notifier.h>
> > #include <linux/reboot.h>
> > #include <linux/init.h>
> > -#include <linux/spinlock.h>
> > #include <linux/io.h>
> > -#include <linux/uaccess.h>
> > -
> >
> > #define WATCHDOG_NAME "w83627hf/thf/hg/dhg WDT"
> > #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
> >
> > -static unsigned long wdt_is_open;
> > -static char expect_close;
> > -static DEFINE_SPINLOCK(io_lock);
> > -
> > /* You must set this - there is no sane way to probe for this board. */
> > static int wdt_io = 0x2E;
> > module_param(wdt_io, int, 0);
> > MODULE_PARM_DESC(wdt_io, "w83627hf/thf WDT io port (default 0x2E)");
> >
> > -static int timeout = WATCHDOG_TIMEOUT; /* in seconds */
> > +static int timeout; /* in seconds */
> > module_param(timeout, int, 0);
> > MODULE_PARM_DESC(timeout,
> > "Watchdog timeout in seconds. 1 <= timeout <= 255, default="
> > __MODULE_STRING(WATCHDOG_TIMEOUT) ".");
> >
> > -static bool nowayout = WATCHDOG_NOWAYOUT;
> > -module_param(nowayout, bool, 0);
> > -MODULE_PARM_DESC(nowayout,
> > - "Watchdog cannot be stopped once started (default="
> > - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
> > -
>
> Why do you remove the nowayout module param?
>
Hi Wim,
sorry, that is too long ago. I simply don't remember what drove me to do that.
Looking at other drivers, that doesn't seem to make much sense, does it ?
I'll be happy to resubmit the patch with the parameter restored, or submit
a patch on top of it to restore it. Please let me know what you prefer.
Thanks,
Guenter
next prev parent reply other threads:[~2013-10-28 23:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-17 20:58 [PATCH v3 0/8] " Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 1/8] " Guenter Roeck
2013-10-28 21:57 ` Wim Van Sebroeck
2013-10-28 23:10 ` Guenter Roeck [this message]
2013-10-29 2:43 ` [PATCH v4] " Guenter Roeck
2013-10-29 6:34 ` Wim Van Sebroeck
2013-11-17 19:12 ` Wim Van Sebroeck
2013-11-17 21:21 ` Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 2/8] watchdog: w83627hf: Enable watchdog only once Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 3/8] watchdog: w83627hf: Enable watchdog device only if not already enabled Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 4/8] watchdog: w83627hf: Use helper functions to access superio registers Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 5/8] watchdog: w83627hf: Auto-detect IO address and supported chips Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 6/8] watchdog: w83627hf: Add support for W83697HF and W83697UG Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 7/8] watchdog: Remove drivers " Guenter Roeck
2013-08-17 20:58 ` [PATCH v3 8/8] watchdog: w83627hf_wdt: Reset watchdog trigger during initialization Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131028231026.GA16758@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®