ADM1031 Driver (was long time ago <driver for mic184 chip>)
Hi Frank,
I just niticed that you have problems with the lm1030 driver in the following message :
http://article.gmane.org/gmane.linux.drivers.sensors/563
As I am one of the authors, I'd like to resolve the problems, can you explain precisely what are the problems that you have ?
Thanks,
Alexandre.
Signature · 1 line
Alexandre d'Alton <[email protected]>
Alexandre,
I was able to sneak some time in today between builds and look at this driver some more. I was able to get your driver to work with a simple modification. Let me describe my setup first. Kernel is 2.6.9 except when I started having problems with this driver I brought adm1031.c from 2.6.10 and put the normal_i2c stuff back in. It appears that in adm1031_attach_adapter() adapter->class is zero and HWMON is 1 so I get the return 0 instead of calling i2c_detect. I am using an adm1030 part. When I remove the adapter->class test then the driver is up and running fine. I see some other drivers have removed this sort of test but I have not looked into the consequences of doing this. Any ideas or clues on what I might need to fix to get the class set properly?
Thanks
Frank
Quoted 16 lines · Alexandre d'Alton
Hi Frank,
I just niticed that you have problems with the lm1030 driver in the following message :
http://article.gmane.org/gmane.linux.drivers.sensors/563
As I am one of the authors, I'd like to resolve the problems, can you explain precisely what are the problems that you have ?
Thanks,
Alexandre.
Hi Frank,
Quoted 9 lines
I was able to sneak some time in today between builds and look at this driver some more. I was able to get your driver to work with a simple modification. Let me describe my setup first. Kernel is 2.6.9 except when I started having problems with this driver I brought
adm1031.cfrom 2.6.10 and put thenormal_i2cstuff back in. It appears that inadm1031_attach_adapter()adapter->classis zero and HWMON is 1 so I get the return 0 instead of callingi2c_detect. I am using an adm1030 part. When I remove theadapter->classtest then the driver is up and running fine.
adapter->class is provided by the driver of the bus your ADM1030 chip sits on. If it is zero this means that the driver did not properly declare its class. This is a problem with the bus driver, not the adm1031 driver. So both your claim that the adm1031 driver was broken and your fix are incorrect.
Quoted 2 lines
I see some other drivers have removed this sort of test but I have not looked into the consequences of doing this.
Which drivers please? We are rather currently *adding* the checks, not removing them.
Quoted 2 lines
Any ideas or clues on what I might need to fix to get the class set properly?
Which bus driver are you using? It obviously lacks class declaration, so the correct fix is to add the class there.
Thanks,
--
Jean Delvare
Quoted 39 lines · Jean Delvare
Hi Frank,
Quoted 11 lines
I was able to sneak some time in today between builds and look at this driver some more. I was able to get your driver to work with a simple modification. Let me describe my setup first. Kernel is 2.6.9 except when I started having problems with this driver I brought
adm1031.cfrom 2.6.10 and put thenormal_i2cstuff back in. It appears that inadm1031_attach_adapter()adapter->classis zero and HWMON is 1 so I get the return 0 instead of callingi2c_detect. I am using an adm1030 part. When I remove theadapter->classtest then the driver is up and running fine.
adapter->classis provided by the driver of the bus your ADM1030 chip sits on. If it is zero this means that the driver did not properly declare its class. This is a problem with the bus driver, not the adm1031 driver. So both your claim that the adm1031 driver was broken and your fix are incorrect.Quoted 4 lines
I see some other drivers have removed this sort of test but I have not looked into the consequences of doing this.
Which drivers please? We are rather currently *adding* the checks, not removing them.
Quoted 4 lines
Any ideas or clues on what I might need to fix to get the class set properly?
Quoted 8 lines
Which bus driver are you using? It obviously lacks class declaration, so the correct fix is to add the class there.
Thanks,
--
Jean Delvare
The modules that are loading are (in reverse order):
adm1031
ad5321
mic184
pca9540
i2c_sensor
i2c_elektor
i2c_algo_pcf
i2c_coreSo I believe what you are asking for is the i2c_elektor driver for the PCF8584 ISA to I2C chip. Note again that this is 2.6.9 and I have not looked to see if there are any changes to the 2.6.10 or 2.6.11 drivers other than adm1031 as stated earlier.
Thanks
Frank