Re: [PATCH] watchdog: add Nano 7240 driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wim Van Sebroeck
Date: Wednesday, October 24, 2007 - 8:16 am

Hi Gilles,


Normal watchdog  behaviour: The magic char should be written and then
/dev/watchdog can be closed and then the watchdog will stop.
What you did here was: if you write the magic char then stop the watchdog
even when the /dev/watchdog device is still open.
This is not the way that it should work.


It's better to do the misc_register as last action. Reason herefor is that
you want to only enable the user-space interface when all the other settings
and interfacing was succesfull. Else you risk that userspace get's enabled and
that you then exit the watchdog driver.
Second problem that I see here is that you should make sure that the watchdog
device driver is stopped/disabled before that you give userspace access via
/dev/watchdog to the watchdog.

Greetings,
wim.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] watchdog: add Nano 7240 driver, Gilles Gigan, (Tue Oct 23, 7:11 pm)
Re: [PATCH] watchdog: add Nano 7240 driver, Andrew Morton, (Tue Oct 23, 7:29 pm)
Re: [PATCH] watchdog: add Nano 7240 driver, Wim Van Sebroeck, (Wed Oct 24, 8:16 am)
Re: [PATCH] watchdog: add Nano 7240 driver, Wim Van Sebroeck, (Wed Oct 24, 8:22 am)
Re: [PATCH] watchdog: add Nano 7240 driver, Alan Cox, (Wed Oct 24, 9:27 am)
Re: [PATCH] watchdog: add Nano 7240 driver, Gilles Gigan, (Tue Oct 30, 11:31 pm)