Re: [PATCH] add watchdog driver IT8716 IT8718 IT8726 IT8712J/K

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Oliver Schuster <olivers137@...>, <linux-kernel@...>, <wim@...>
Date: Tuesday, March 11, 2008 - 8:48 pm

Hi Andrew,

thank you for your recommendations and corrections.
I've considered all and changed the code.

But first: Add support for it8718, which made the driver slightly more
complex.
Now the driver supports it8716, it8718, it8726, it8712-j and it8712-k,
which are all 16-bit watchdog timer on ITE lpc-super-io-chips.

Andrew Morton wrote:

exclusive -- sorry 8)


You are right, changed.
About the spinlock, i use it primary to ensure that at the same time 
only one task can have access to the superio chip configuration register.


test_bit() is now used.



Comment about wdt_write is changed.


I prefer "echo V>/dev/watchdog" (in the case that nowayout is NOT set)
to stop the watchdog. But any write which contain the magic can stop the 
watchdog on next close of the device.
This code originates from softdog.c, now slightly changed.

 >> ...

Most of comments are from the code, that i used as template. These
commentaries seems to be kerneldoc, but aren't. I changed this and add 
all needful.

To extract the kerneldoc, i like this colorful way:
scripts/kernel-doc -html ... | lynx -stdin


The driver hwmon/it87.c use the same way to detect the ITE superio chip 
by poking at IO ports. It dependence on HAS_IOMEM, but i decided to be 
more strictly and use X86, because the low pin count interface is 
created for this architecture and the IO base addresses used by these 
chips are X86 specific.

Regards,
Oliver
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] add watchdog driver IT8716 IT8726 IT8712J/K, Oliver Schuster, (Wed Feb 27, 10:55 am)
Re: [PATCH] add watchdog driver IT8716 IT8726 IT8712J/K, Andrew Morton, (Fri Feb 29, 7:51 pm)
Re: [PATCH] add watchdog driver IT8716 IT8718 IT8726 IT8712J/K, Oliver Schuster, (Tue Mar 11, 8:48 pm)