Re: [WATCHDOG] v2.5.25-rc patches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Schuster
Date: Tuesday, March 11, 2008 - 11:14 am

Hi,

WARNING

this patch can cause serious problems in the case, that someone use it 
with an it8712 rev. 8 and above.

Wim Van Sebroeck wrote:

Your patch changes it8712f_wdt.c in function t8712f_wdt_update_margin():


but here you can't use superio_outw, because the bytes are swapped 
--historical reason.

I suggest to substitute
	superio_outw(units, WDT_TIMEOUT);
with
	superio_outb(units >> 8, WDT_TIMEOUT + 1);
	superio_outb(units, WDT_TIMEOUT);

or to change the patch with (only the referenced position above)

+	if (revision >= 0x08)
+		superio_outb(units >> 8, WDT_TIMEOUT + 1);
+
+	superio_outb(units, WDT_TIMEOUT);

I'm sorry, that I resend this message.
Now I'm able to respond correctly to existing thread.

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

Messages in current thread:
[WATCHDOG] v2.5.25-rc patches, Wim Van Sebroeck, (Mon Mar 10, 1:14 pm)
Re: [WATCHDOG] v2.5.25-rc patches, Oliver Schuster, (Tue Mar 11, 11:14 am)
Re: [WATCHDOG] v2.5.25-rc patches, Wim Van Sebroeck, (Tue Mar 11, 2:02 pm)