linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] [PATCH 0/10] Generic Watchdog Timer Driver
@ 2011-02-23 20:41 Wim Van Sebroeck
  2011-02-23 22:19 ` Mike Waychison
  2011-06-16 13:10 ` Andrea Galbusera
  0 siblings, 2 replies; 4+ messages in thread
From: Wim Van Sebroeck @ 2011-02-23 20:41 UTC (permalink / raw)
  To: LKML, Linux Watchdog Mailing List; +Cc: Alan Cox

Hi All,

To reduce copying the same code over and over in each watchdog device driver, Alan Cox and myself constructed a new framework/API that consolidates the common watchdog timer driver functions.

This framework/API consists of the following patches:
part  1: Introduction of the WatchDog Timer Driver Core
part  2: Add the basic ioctl functionality
part  3: Add the WDIOC_KEEPALIVE ioctl
part  4: Add the WDIOC_SETOPTIONS ioctl
part  5: Add the WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctl
part  6: Add orphan control
part  7: Add the Magic Close feature
part  8: Add the nowayout feature
part  9: Add support for a miscdev parent device
part 10: Add support for extra ioctl calls

Note: I still need to add the minimum and maximum timeout parameters.
(That will become part 11).

Please provide feedback,
Kind regards,
Wim.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] [PATCH 0/10] Generic Watchdog Timer Driver
  2011-02-23 20:41 [RFC] [PATCH 0/10] Generic Watchdog Timer Driver Wim Van Sebroeck
@ 2011-02-23 22:19 ` Mike Waychison
  2011-06-16 13:10 ` Andrea Galbusera
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Waychison @ 2011-02-23 22:19 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: LKML, Linux Watchdog Mailing List, Alan Cox

On 02/23/11 12:41, Wim Van Sebroeck wrote:
> Hi All,
>
> To reduce copying the same code over and over in each watchdog device driver, Alan Cox and myself constructed a new framework/API that consolidates the common watchdog timer driver functions.
>
> This framework/API consists of the following patches:
> part  1: Introduction of the WatchDog Timer Driver Core
> part  2: Add the basic ioctl functionality
> part  3: Add the WDIOC_KEEPALIVE ioctl
> part  4: Add the WDIOC_SETOPTIONS ioctl
> part  5: Add the WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctl
> part  6: Add orphan control
> part  7: Add the Magic Close feature
> part  8: Add the nowayout feature
> part  9: Add support for a miscdev parent device
> part 10: Add support for extra ioctl calls
>
> Note: I still need to add the minimum and maximum timeout parameters.
> (That will become part 11).

Overall, this looks really good IMO.  It goes a long way to setting the 
stage for cleaning up the watchdog drivers themselves :)

Reviewed-by: Mike Waychison <mikew@google.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] [PATCH 0/10] Generic Watchdog Timer Driver
  2011-02-23 20:41 [RFC] [PATCH 0/10] Generic Watchdog Timer Driver Wim Van Sebroeck
  2011-02-23 22:19 ` Mike Waychison
@ 2011-06-16 13:10 ` Andrea Galbusera
  2011-06-17  7:11   ` Wim Van Sebroeck
  1 sibling, 1 reply; 4+ messages in thread
From: Andrea Galbusera @ 2011-06-16 13:10 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: LKML, Linux Watchdog Mailing List, Alan Cox

Hi Wim,

On Wed, Feb 23, 2011 at 9:41 PM, Wim Van Sebroeck <wim@iguana.be> wrote:
> To reduce copying the same code over and over in each watchdog device driver, Alan Cox and myself constructed a new framework/API that consolidates the common watchdog timer driver functions.
>
> This framework/API consists of the following patches:
> part  1: Introduction of the WatchDog Timer Driver Core
> part  2: Add the basic ioctl functionality
> part  3: Add the WDIOC_KEEPALIVE ioctl
> part  4: Add the WDIOC_SETOPTIONS ioctl
> part  5: Add the WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctl
> part  6: Add orphan control
> part  7: Add the Magic Close feature
> part  8: Add the nowayout feature
> part  9: Add support for a miscdev parent device
> part 10: Add support for extra ioctl calls

While looking for efforts to provide a generic driver for gpio driven
watchdog devices, like some simple hardware supervisors, I came into
this patchset RFC, which turned out to be very interesting to me.
Maybe I'm looking into the wrong places, but I could not find any
upstream commit after this RFC.
Since I don't see any real critic from commenters to the approach you
are suggesting, I'd like to know if there still is some
work-in-progress on this.

TIA
Kind regards,

Andrea

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] [PATCH 0/10] Generic Watchdog Timer Driver
  2011-06-16 13:10 ` Andrea Galbusera
@ 2011-06-17  7:11   ` Wim Van Sebroeck
  0 siblings, 0 replies; 4+ messages in thread
From: Wim Van Sebroeck @ 2011-06-17  7:11 UTC (permalink / raw)
  To: Andrea Galbusera; +Cc: LKML, Linux Watchdog Mailing List, Alan Cox

Hi Andrea,

> On Wed, Feb 23, 2011 at 9:41 PM, Wim Van Sebroeck <wim@iguana.be> wrote:
> > To reduce copying the same code over and over in each watchdog device driver, Alan Cox and myself constructed a new framework/API that consolidates the common watchdog timer driver functions.
> >
> > This framework/API consists of the following patches:
> > part  1: Introduction of the WatchDog Timer Driver Core
> > part  2: Add the basic ioctl functionality
> > part  3: Add the WDIOC_KEEPALIVE ioctl
> > part  4: Add the WDIOC_SETOPTIONS ioctl
> > part  5: Add the WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctl
> > part  6: Add orphan control
> > part  7: Add the Magic Close feature
> > part  8: Add the nowayout feature
> > part  9: Add support for a miscdev parent device
> > part 10: Add support for extra ioctl calls
> 
> While looking for efforts to provide a generic driver for gpio driven
> watchdog devices, like some simple hardware supervisors, I came into
> this patchset RFC, which turned out to be very interesting to me.
> Maybe I'm looking into the wrong places, but I could not find any
> upstream commit after this RFC.
> Since I don't see any real critic from commenters to the approach you
> are suggesting, I'd like to know if there still is some
> work-in-progress on this.

I was working on it yesterday and will finish testing today.
So expect a new post this afternoon.

I incorporated the comments I received. Orphan control will not be in (as
long as the watchdog device is registered you can reopen it). And we will
add the minimum and maximum timeout in an extra part.

Kind regards,
Wim.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-17  7:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 20:41 [RFC] [PATCH 0/10] Generic Watchdog Timer Driver Wim Van Sebroeck
2011-02-23 22:19 ` Mike Waychison
2011-06-16 13:10 ` Andrea Galbusera
2011-06-17  7:11   ` Wim Van Sebroeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).