From c9c0cb604f78d5394c802f4f79a1f3d8fd33d661 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 31 Jan 2012 12:51:31 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + prog/detect/sensors-detect | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index c41f4895..7a27669b 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,7 @@ SVN HEAD Make LM73 detection less problematic Add detection of National Semiconductor LM96163 Add detection of GMT G781 + Properly handle Super-I/O chips without logical device 3.3.1 (2011-07-21) isadump: Add support for word (16-bit) and long (32-bit) reads diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 95c55b49..d2ab3753 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3766,6 +3766,10 @@ sub probe_superio print "\n (hardware monitoring capabilities accessible via SMBus only)\n"; return FEAT_SMBUS; } + if (!exists $chip->{logdev}) { + print "\n (no support yet)\n"; + return 0; + } # Switch to the sensor logical device outb($addrreg, $superio{logdevreg});