Changeset 5046

Show
Ignore:
Timestamp:
11/26/07 14:07:27 (7 years ago)
Author:
khali
Message:

Drop detection of the Philips Semiconductors PCA9540. This is an I2C
multiplexer, it should be handled transparently at the kernel level.
On top of that, it can't be detected reliably, and the pca9540 driver
doesn't even exist in Linux 2.6.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5036 r5046  
    2121                          Add SMSC LPC47B367-NC detection (no sensors) 
    2222                          Reduce w83781d/lm78 I2C address probing range 
     23                          Drop PCA9540 detection 
    2324 
    24252.10.5 (20071024) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5015 r5046  
    14631463     }, 
    14641464     { 
    1465        name => "Philips Semiconductors PCA9540", 
    1466        driver => "pca9540", 
    1467        i2c_addrs => [0x70], 
    1468        i2c_detect => sub { pca9540_detect(@_); }, 
    1469      }, 
    1470      { 
    14711465       name => "Smart Battery", 
    14721466       driver => "smartbatt", 
     
    52125206 
    52135207  return 7; 
    5214 } 
    5215  
    5216 # $_[0]: A reference to the file descriptor to access this chip. 
    5217 # $_[1]: Address 
    5218 # Returns: undef if not detected, 1 if detected 
    5219 # Detection is rather difficult, since the PCA9540 has a single register. 
    5220 # Fortunately, no other device is known to live at this address. 
    5221 sub pca9540_detect 
    5222 { 
    5223         my ($file, $addr) = @_; 
    5224         my $reg = i2c_smbus_read_byte($file); 
    5225  
    5226         return if ($reg & 0xfa); 
    5227         return if $reg != i2c_smbus_read_byte($file); 
    5228         return if $reg != i2c_smbus_read_byte($file); 
    5229         return if $reg != i2c_smbus_read_byte($file); 
    5230  
    5231         return 1; 
    52325208} 
    52335209