mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
Always probe the SMBus on Asus and Tyan boards. Both vendors are well
known for making boards with more than one hardware monitoring chip. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5520 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
69c9707ab7
commit
2d31705bec
2 files changed
+19
-2
No files matched your search
@@ -41,6 +41,7 @@ SVN-HEAD
|
||||
Display I2C address statictics with --stat
|
||||
Document the new detection order and rules
|
||||
Gather DMI data and print it at start-up
|
||||
Always probe the SMBus on Asus and Tyan boards
|
||||
sensors-detect-stat.pl: Delete (functionality merged into sensors-detect)
|
||||
|
||||
3.0.3 (2008-09-28)
|
||||
|
||||
@@ -2197,6 +2197,17 @@ sub print_dmi_summary
|
||||
&& (!defined $system || $system ne $board);
|
||||
}
|
||||
|
||||
sub dmi_match
|
||||
{
|
||||
my $key = shift;
|
||||
my $value;
|
||||
|
||||
while (defined ($value = shift)) {
|
||||
return 1 if $dmi{$key} =~ m/\b$value\b/i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#################
|
||||
# SYSFS HELPERS #
|
||||
#################
|
||||
@@ -5187,10 +5198,15 @@ sub main
|
||||
$i2c_addresses_to_scan = i2c_addresses_to_scan();
|
||||
print "\n";
|
||||
|
||||
# Skip SMBus probing by default if Super-I/O has all the features
|
||||
my $by_default = ~$superio_features & (FEAT_IN | FEAT_FAN | FEAT_TEMP);
|
||||
# Except on Asus and Tyan boards which often have more than
|
||||
# one hardware monitoring chip
|
||||
$by_default = 1 if dmi_match('board_vendor', 'asustek', 'tyan');
|
||||
|
||||
for (my $dev_nr = 0; $dev_nr < @i2c_adapters; $dev_nr++) {
|
||||
next unless exists $i2c_adapters[$dev_nr];
|
||||
scan_i2c_adapter($dev_nr,
|
||||
~$superio_features & (FEAT_IN | FEAT_FAN | FEAT_TEMP));
|
||||
scan_i2c_adapter($dev_nr, $by_default);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user