Changeset 5966

Show
Ignore:
Timestamp:
05/05/11 17:31:19 (13 months ago)
Author:
khali
Message:

Drop unreliable smart battery detection.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5962 r5966  
    88                  Add detection of ADT7461A / NCT1008 
    99                  Add detection of ITE IT8516E/F/G 
     10                  Integrate with systemd 
     11                  Drop unreliable smart battery detection 
    1012 
    11133.3.0 (2011-03-28) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5965 r5966  
    13451345                i2c_addrs => [0x18..0x1f], 
    13461346                i2c_detect => sub { jedec_JC42_4_detect(@_, 9); }, 
    1347         }, { 
    1348                 name => "Smart Battery", 
    1349                 driver => "sbs", # ACPI driver, not sure if it always works 
    1350                 i2c_addrs => [0x0b], 
    1351                 i2c_detect => sub { smartbatt_detect(@_); }, 
    13521347        } 
    13531348); 
     
    57065701} 
    57075702 
    5708 # This checks for non-FFFF values for temperature, voltage, and current. 
    5709 # The address (0x0b) is specified by the SMBus standard so it's likely 
    5710 # that this really is a smart battery. 
    5711 sub smartbatt_detect 
    5712 { 
    5713         my ($file, $addr) = @_; 
    5714  
    5715         return if i2c_smbus_read_word_data($file, 0x08) == 0xffff 
    5716                || i2c_smbus_read_word_data($file, 0x09) == 0xffff 
    5717                || i2c_smbus_read_word_data($file, 0x0a) == 0xffff; 
    5718         return 5; 
    5719 } 
    5720  
    57215703# Chip to detect: 0 = W83L784R/AR/G, 1 = W83L785R/G, 2 = W83L786NR/NG/R/G, 
    57225704#                 3 = W83L785TS-S