ATXP1 kernel patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to add two things to my last message:

- The VRM check in atxp1_detect was moved above i2c_attach_client.

- I've channged the detection method, because
..
temp = i2c_smbus_read_byte_data(new_client, ATXP1_VID);
if(!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) &&
    (i2c_smbus_read_byte_data(new_client, 0x11) == temp)
...

the register 0x10,0x11 aren't the same as 0x00 all time (the dump say 
it, but I think that's because the device is dumped from 0x00 upwards). 
If you directly read 0x10, 0x11 they are also zero.

Instead I'm checking register 0x05, bit 7. It is always set:
..
if(!(i2c_smbus_read_byte_data(new_client, 0x05) & 0x80))
..

Regards,
Sebastian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atxp1.c
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050119/688260e1/attachment.c 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux