Changeset 4347

Show
Ignore:
Timestamp:
03/17/07 22:07:54 (6 years ago)
Author:
khali
Message:

sensors-detect: Make the LM78 and W83781D detection safer.
If we find that the register at offset 5 doesn't behave as it would for
an LM78 or W83781D chip, attempt to restore its 8 original bits rather
than just the 7 LSB.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4345 r4347  
    4444                          Add Nat. Semi. PC8347L Super-I/O detection 
    4545                          Add SMSC SCH5504 Super-I/O detection (no sensors) 
     46                          Make the LM78 and W83781D detection safer 
    4647 
    4748 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4343 r4347  
    32873287            inb ($addr + 7) != $val; 
    32883288 
    3289   $val = inb($addr + 5) & 0x7f; 
    3290   outb($addr + 5, ~$val & 0xff); 
     3289  $val = inb($addr + 5); 
     3290  outb($addr + 5, ~$val & 0x7f); 
    32913291  if ((inb ($addr+5) & 0x7f) != (~ $val & 0x7f)) { 
    32923292    outb($addr+5,$val); 
     
    42514251            inb ($addr + 7) != $val; 
    42524252 
    4253   $val = inb($addr + 5) & 0x7f; 
    4254   outb($addr+5, ~$val & 0xff); 
     4253  $val = inb($addr + 5); 
     4254  outb($addr+5, ~$val & 0x7f); 
    42554255  if ((inb ($addr+5) & 0x7f) != (~ $val & 0x7f)) { 
    42564256    outb($addr+5,$val);