Re: Bad value with w83627thf

From: Jean Delvare
Date: Fri May 16 2008 - 10:26:55 EST


Hi Oliver,

On Fri, 16 May 2008 15:45:01 +0200, Oliver Pinter wrote:
> the battery is CR2032, and it is 3V, im older kernel alway reported
> bad value 0,02V or 2,4V (i think it is a possible value), after i
> inserted new battery, show 2,4V.
> from the 2.6.26-rcX kernel showed the 3+ V. when i reboot to older
> kernel, the this state remained, but when turned off the pc, then not.

This can be easily explained. In kernel 2.6.25, we fixed a bug where
the w83627hf driver assumed that the BIOS had enabled VBat monitoring
[1]. With previous kernels, the VBat value would be wrong if the BIOS
did not actually enable VBat monitoring. Since kernel 2.6.25, the
w83627hf driver doesn't assume anything from the BIOS as far as VBat is
concerned, and enables monitoring if needed.

When you reboot your machine, the W83627THF device is not reset, so the
configuration steps done by the w83627hf driver of kernel 2.6.25+
remain. However, if you stop the machine then start it again, the
configuration is lost.

[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef878b11ba245d14b7db7816217a825d6a894182

--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/