Changeset 4406

Show
Ignore:
Timestamp:
05/16/07 11:11:37 (6 years ago)
Author:
khali
Message:

Fix busy flag detection. Some Super-I/O chips (W83627THF) can't read
back from the address port, so the value 0xff is returned, causing
a false positive with the original test. Testing explicitly for 0x80
instead of only testing that bit 7 is set, works around it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/dump/isadump.c

    r4357 r4406  
    294294                        } else {         
    295295                                outb(i+j, addrreg); 
    296                                 if (i+j == 0 && (inb(addrreg) & 0x80)) { 
     296                                if (i+j == 0 && inb(addrreg) == 0x80) { 
    297297                                        /* Bit 7 appears to be a busy flag */ 
    298298                                        range = 128;