2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-04 16:25:18 +00:00

Properly handle Super-I/O chips without logical device. Just report

that we can't support the chip yet, instead of spitting I/O errors.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6016 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2012-01-31 12:51:31 +00:00
parent 2e65243b16
commit c9c0cb604f
2 changed files with 5 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ SVN HEAD
Make LM73 detection less problematic Make LM73 detection less problematic
Add detection of National Semiconductor LM96163 Add detection of National Semiconductor LM96163
Add detection of GMT G781 Add detection of GMT G781
Properly handle Super-I/O chips without logical device
3.3.1 (2011-07-21) 3.3.1 (2011-07-21)
isadump: Add support for word (16-bit) and long (32-bit) reads isadump: Add support for word (16-bit) and long (32-bit) reads

View File

@@ -3766,6 +3766,10 @@ sub probe_superio
print "\n (hardware monitoring capabilities accessible via SMBus only)\n"; print "\n (hardware monitoring capabilities accessible via SMBus only)\n";
return FEAT_SMBUS; return FEAT_SMBUS;
} }
if (!exists $chip->{logdev}) {
print "\n (no support yet)\n";
return 0;
}
# Switch to the sensor logical device # Switch to the sensor logical device
outb($addrreg, $superio{logdevreg}); outb($addrreg, $superio{logdevreg});