mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Drop alias detection for Super-I/O chips. It never actually worked,
because the code compares the chip names first and we never cared of using the exact same name string for I2C and Super-I/O entries of a given chip. Anyway, we do not have any Super-I/O driver also doing I2C access so detecting aliases wouldn't be that usesul. And as I've said before, alias detection is better handled at the kernel level anyway. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5494 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1124,10 +1124,6 @@ use vars qw(@i2c_adapter_names);
|
||||
# devid: The device ID we have to match (base device)
|
||||
# devid_mask (optional): Bitmask to apply before checking the device ID
|
||||
# logdev: The logical device containing the sensors
|
||||
# alias_detect (optional): For chips which can be both on the LPC and the
|
||||
# I2C bus, a function which detects whether two entries are the same.
|
||||
# The function will be passed three parameters: the LPC address, an
|
||||
# open file descriptor to access the I2C bus, and the I2C address.
|
||||
use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns
|
||||
@superio_ids_winbond @superio_ids_ite @superio_ids);
|
||||
|
||||
@@ -1449,7 +1445,6 @@ use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns
|
||||
driver => "vt1211",
|
||||
devid => 0x3c,
|
||||
logdev => 0x0b,
|
||||
alias_detect => sub { vt1211_alias_detect(@_); },
|
||||
}, {
|
||||
name => "VIA VT1212 Super IO Lite", # in 100 pin TQFP package
|
||||
driver => "not-a-sensor",
|
||||
@@ -1463,7 +1458,6 @@ use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns
|
||||
driver => "w83627hf",
|
||||
devid => 0x52,
|
||||
logdev => 0x0b,
|
||||
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },
|
||||
}, {
|
||||
name => "Winbond W83627THF/THG Super IO Sensors",
|
||||
driver => "w83627hf",
|
||||
@@ -1497,14 +1491,12 @@ use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns
|
||||
devid => 0x8840,
|
||||
devid_mask => 0xFFC0,
|
||||
logdev => 0x0b,
|
||||
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3e); },
|
||||
}, {
|
||||
name => "Winbond W83627DHG Super IO Sensors",
|
||||
driver => "w83627ehf",
|
||||
devid => 0xA020,
|
||||
devid_mask => 0xFFF0,
|
||||
logdev => 0x0b,
|
||||
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3e); },
|
||||
}, {
|
||||
name => "Winbond W83L517D Super IO",
|
||||
driver => "not-a-sensor",
|
||||
@@ -1571,7 +1563,6 @@ use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns
|
||||
driver => "it87",
|
||||
devid => 0x8712,
|
||||
logdev => 0x04,
|
||||
alias_detect => sub { winbond_alias_detect(@_, 0x30, 0x45); },
|
||||
}, {
|
||||
name => "ITE IT8716F Super IO Sensors",
|
||||
driver => "it87",
|
||||
@@ -2909,8 +2900,7 @@ sub probe_superio
|
||||
isa_addr => $addr,
|
||||
chipname => $chip->{name}
|
||||
};
|
||||
add_isa_to_chips_detected($chip->{driver}, $new_hash,
|
||||
$chip->{alias_detect});
|
||||
add_isa_to_chips_detected($chip->{driver}, $new_hash);
|
||||
}
|
||||
|
||||
# Detection routine for non-standard SMSC Super I/O chips
|
||||
@@ -4651,19 +4641,6 @@ sub winbond_alias_detect
|
||||
return 1;
|
||||
}
|
||||
|
||||
sub vt1211_alias_detect
|
||||
{
|
||||
my ($isa_addr, $file, $i2c_addr) = @_;
|
||||
my $i;
|
||||
|
||||
return 0 unless (inb($isa_addr + 0x48) & 0x7f) == $i2c_addr;
|
||||
for ($i = 0x2b; $i <= 0x3d; $i++) {
|
||||
return 0 unless inb($isa_addr + $i) ==
|
||||
i2c_smbus_read_byte_data($file, $i);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
######################
|
||||
# PCI CHIP DETECTION #
|
||||
######################
|
||||
|
Reference in New Issue
Block a user