Add detection of EMC2300 to sensors-detect
PATCH 1/1 Add detection of EMC2300 to sensors-detect
EMC2300 is already detected, but is reported as EMC6D103S. These two are register compatible and it's not actually possible to distinguish between them by registers so this patch changes the sensors-detect script to report it's found "EMC6D103S or EMC2300".
Both are supported by the same lm85 driver, so this patch makes it more obvious to anyone grepping the source that EMC2300 is supported.
--- prog/detect/sensors-detect | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
prog/detect/sensors-detect +3 -3
@@ -557,7 +557,7 @@ use vars qw(@i2c_adapter_names); i2c_addrs => [0x2c..0x2e], i2c_detect => sub { lm85_detect(@_, 6); }, }, { - name => "SMSC EMC6D103S", + name => "SMSC EMC6D103S or EMC2300", driver => "lm85", i2c_addrs => [0x2c..0x2e], i2c_detect => sub { lm85_detect(@_, 8); },
@@ -4857,7 +4857,7 @@ sub andigilog_aSC7511_detect # Chip to detect: 0 = LM85, 1 = LM96000, 2 = ADM1027, 3 = ADT7463, # 4 = EMC6D100/101, 5 = EMC6D102, 6 = EMC6D103, -# 7 = WPCD377I (no sensors), 8 = EMC6D103S +# 7 = WPCD377I (no sensors), 8 = EMC6D103S/EMC2300 # Registers used: # 0x3e: Vendor register # 0x3d: Device ID register (Analog Devices only)
@@ -4896,7 +4896,7 @@ sub lm85_detect && $verstep != 0x69; # EMC6D103 A1 } elsif ($chip = 8) { return if $vendor != 0x5c; # SMSC - return if $verstep != 0x6a; # EMC6D103S + return if $verstep != 0x6a; # EMC6D103S/EMC2300 } if ($vendor = 0x41) { # Analog Devices
Signature · 7 lines
1.7.4.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare
AppliedQuoted 9 lines · Steve Glendinning
EMC2300 is already detected, but is reported as EMC6D103S. These two are register compatible and it's not actually possible to distinguish between them by registers so this patch changes the sensors-detect script to report it's found "EMC6D103S or EMC2300".
Both are supported by the same lm85 driver, so this patch makes it more obvious to anyone grepping the source that EMC2300 is supported.
Quoted 5 lines
Signed-off-by Steve Glendinning <[email protected]>--- prog/detect/sensors-detect | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)(...)
Applied, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors