]> git.baikalelectronics.ru Git - kernel.git/commit
[WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog
authorAndrew Paprocki <andrew@ishiboo.com>
Wed, 2 Apr 2008 06:43:19 +0000 (02:43 -0400)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 6 Apr 2008 19:12:22 +0000 (19:12 +0000)
commit1b3658d5a852ca3fcd3a026a0f4d6a5a19e20813
tree8bb1d0fc8804bd5bc3af8d02fd2ac953bb3e2e8a
parente9da371fb05b7e91d6b100337a651488b85a98ad
[WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog

I noticed this while testing the latest code. I'm not sure if it is required,
but the normal (or LSB) timeout value is set to zero, so the MSB should
be as well to stay consistent.

If the chip revision is >= 8, set MSB of the 16-bit timeout value to zero
when disabling the watchdog in it8712f_wdt_disable().

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/it8712f_wdt.c