From: Wolfram Sang <w.sang@pengutronix.de>
To: Wim Van Sebroeck <wim@iguana.be>
Cc: Marc Vertes <marc.vertes@sigfox.com>,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
Dimitry Andric <dimitry.andric@tomtom.com>,
Ben Dooks <ben@simtec.co.uk>
Subject: Re: [PATCH] watchdog: add nowayout helpers to Watchdog Timer Driver Kernel API
Date: Tue, 29 Nov 2011 12:31:24 +0100 [thread overview]
Message-ID: <20111129113124.GE5455@pengutronix.de> (raw)
In-Reply-To: <20111129111430.GA17609@infomag.iguana.be>
[-- Attachment #1: Type: text/plain, Size: 2029 bytes --]
On Tue, Nov 29, 2011 at 12:14:30PM +0100, Wim Van Sebroeck wrote:
> Add two nowayout helpers for the Watchdog Timer Driver Kernel API.
>
> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
> ---
> diff --git a/Documentation/watchdog/00-INDEX b/Documentation/watchdog/00-INDEX
> index fc51128..fc9082a 100644
> --- a/Documentation/watchdog/00-INDEX
> +++ b/Documentation/watchdog/00-INDEX
> @@ -1,5 +1,7 @@
> 00-INDEX
> - this file.
> +convert_drivers_to_kernel_api.txt
> + - how-to for converting old watchdog drivers to the new kernel API.
Since the howto needs a NOWAYOUT-update as well, I suggest I'll send a
patch for that and take care of the missing index-entry there?
> @@ -142,6 +142,14 @@ bit-operations. The status bits that are defined are:
> * WDOG_NO_WAY_OUT: this bit stores the nowayout setting for the watchdog.
> If this bit is set then the watchdog timer will not be able to stop.
>
> +To set the WDOG_NO_WAY_OUT status bit (before registering your watchdog
> +timer device) you can either:
> +* set it statically in your watchdog_device struct with
> + .status = WATCHDOG_NOWAYOUT_INIT_STATUS,
> + (this will set the value the same as CONFIG_WATCHDOG_NOWAYOUT) or
> +* use the following helper function:
> +static inline void watchdog_set_nowayout(struct watchdog_device *wdd, int nowayout)
> +
I think one level of indentation would be helpful here so it visually
belongs to the WDOG_NO_WAY_OUT paragraph?
> +/* Use the following function to set the nowayout feature */
> +static inline void watchdog_set_nowayout(struct watchdog_device *wdd, int nowayout)
> +{
> + if (nowayout)
> + set_bit(WDOG_NO_WAY_OUT, &wdd->status);
> +}
> +
Other than that:
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
So, shall I fix the s3c-driver based on that or will you do?
Thanks,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-11-29 11:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 11:14 [PATCH] watchdog: add nowayout helpers to Watchdog Timer Driver Kernel API Wim Van Sebroeck
2011-11-29 11:31 ` Wolfram Sang [this message]
2011-11-29 12:08 ` Wim Van Sebroeck
2011-11-29 11:47 ` Wim Van Sebroeck
2011-11-29 11:52 ` Mark Brown
2011-11-29 12:06 ` Wim Van Sebroeck
2011-11-29 11:58 ` Wolfram Sang
2011-11-29 15:27 ` [PATCH v2] " Wim Van Sebroeck
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=20111129113124.GE5455@pengutronix.de \
--to=w.sang@pengutronix.de \
--cc=ben@simtec.co.uk \
--cc=dimitry.andric@tomtom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=marc.vertes@sigfox.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.