mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
Recognize VGN as a valid Sony Vaio name prefix. This is a backport from
Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5021 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b5f0bc5e6c
commit
9df95ebdee
2 files changed
+10
-5
No files matched your search
@@ -6,6 +6,7 @@ SVN-HEAD
|
||||
Makefile: Revert changeset 4738, fix bug #2187 differently
|
||||
Module eeprom: Hide Sony Vaio serial numbers to regular users (2.6 backport)
|
||||
Drop useless debugging log messages
|
||||
Recognize VGN as a valid Sony Vaio name prefix (2.6 backport)
|
||||
Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding
|
||||
Update manufacturer IDs.
|
||||
Program sensors: Hide spurious errors on missing f71872f voltage inputs
|
||||
|
||||
@@ -200,12 +200,16 @@ static int eeprom_detect(struct i2c_adapter *adapter, int address,
|
||||
goto ERROR3;
|
||||
|
||||
/* Detect the Vaio nature of EEPROMs.
|
||||
We use the "PCG-" prefix as the signature. */
|
||||
We use the "PCG-" or "VGN-" prefix as the signature. */
|
||||
if (address == 0x57) {
|
||||
if (i2c_smbus_read_byte_data(new_client, 0x80) == 'P'
|
||||
&& i2c_smbus_read_byte(new_client) == 'C'
|
||||
&& i2c_smbus_read_byte(new_client) == 'G'
|
||||
&& i2c_smbus_read_byte(new_client) == '-') {
|
||||
char name[4];
|
||||
|
||||
name[0] = i2c_smbus_read_byte_data(new_client, 0x80);
|
||||
name[1] = i2c_smbus_read_byte(new_client);
|
||||
name[2] = i2c_smbus_read_byte(new_client);
|
||||
name[3] = i2c_smbus_read_byte(new_client);
|
||||
|
||||
if (!memcmp(name, "PCG-", 4) || !memcmp(name, "VGN-", 4)) {
|
||||
printk(KERN_INFO "Vaio EEPROM detected, "
|
||||
"enabling privacy protection\n");
|
||||
data->nature = NATURE_VAIO;
|
||||
|
||||
Reference in new issue
Block a user