mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-27 20:48:22 +00:00
Make LM73 detection less problematic.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5994 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
535e73df7a
commit
8536734576
2 files changed
+4
-1
No files matched your search
@@ -4044,7 +4044,9 @@ sub lm73_detect
|
||||
# Bits that always return 0
|
||||
return if ($conf & 0x0c) or ($status & 0x10);
|
||||
|
||||
return if i2c_smbus_read_word_data($file, 0x07) != 0x9001;
|
||||
# Test with byte read first to avoid confusing other chips
|
||||
return if i2c_smbus_read_byte_data($file, 0x07) != 0x01
|
||||
or i2c_smbus_read_word_data($file, 0x07) != 0x9001;
|
||||
|
||||
# Make sure the chip supports SMBus read word transactions
|
||||
my $cur = i2c_smbus_read_word_data($file, 0x00);
|
||||
|
||||
Reference in new issue
Block a user