Skip to contentSkip to conversation

questions on i2c-isa

DISCUSSION Jean Delvare 3 participants 6 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

Two questions on i2c-isa:

1* Why is it that i2cdump does not work with i2c-isa? I understand that i2cdetect cannot work (since i2c-isa isn't a real i2c bus) but i2cdump does exactly what a chip driver could do if I'm not mistaking.

2* Is i2c-isa broken in 2.6? The sensors-detect script says I should use i2c-isa + via686a. I load both and have nothing in sensors. It is with 2.6.1-rc1. It used to work with 2.4.x + i2c-2.8.x.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 2 lines

For all i2c accesses you need an i2c bus address 0x00 - 0x7f. This concept doesn't work for isa busses.

Oh yeah I must be stupid. This is why there is isadump for them.

Quoted 9 lines
Quoted 3 lines

2* Is i2c-isa broken in 2.6? The sensors-detect script says I should use i2c-isa + via686a. I load both and have nothing in sensors. It is with 2.6.1-rc1. It used to work with 2.4.x + i2c-2.8.x.

I reported a while back that via686a sometimes worked and sometimes didn't. Playing with rmmoding and modprobing the modules (in various combinations, including i2c-isa and i2c-core), seemed to make a difference, but I couldn't figure out what made it work or not and never got to the bottom of it.

I made a few tests on my A7V133-C, where there are two sensor chips:
via686a on i2c-isa and as99127f on i2c-viapro. This is with linux 2.6.1-rc1.

It turns out that whichever driver is loaded second will not detect anything. If I load via686a first, it works and no as99127f is detected. If I load w83781d first, no via686a is detected. And it's only a matter of chip drivers. The order in which bus drivers are loaded doesn't matter.

Can you reproduce something similar on your side?

This would tend to demonstrate that the problem doesn't necessarily come from the via686a driver.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Jean Delvare
Quoted 2 lines

It looks like when i2c-viapro is loaded, then via686a won't register. Maybe a PCI registration conflict?

Could be. But then why doesn't the conflict happen under 2.4 as well? Also, if I load i2c-viapro after via686a, it does not fail (although it doesn't work). On a resource conflict, I'd have expected the module not to load at all!

The problem isn't critical anyway, since most users will need either modules, not both. The via686a driver doesn't provide any useful information to me, it's obviously not wired. But I'd like to help solve the problem anyway, if it can be. Unfortunately, I'm low skilled on PCI and even ISA stuff, so I don't know what I should do. Any hint please?

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Jean Delvare
Quoted 8 lines · Jean Delvare

Hi all,

Two questions on i2c-isa:

1* Why is it that i2cdump does not work with i2c-isa? I understand that i2cdetect cannot work (since i2c-isa isn't a real i2c bus) but i2cdump does exactly what a chip driver could do if I'm not mistaking.

For all i2c accesses you need an i2c bus address 0x00 - 0x7f. This concept doesn't work for isa busses.

Quoted 4 lines

2* Is i2c-isa broken in 2.6? The sensors-detect script says I should use i2c-isa + via686a. I load both and have nothing in sensors. It is with 2.6.1-rc1. It used to work with 2.4.x + i2c-2.8.x.

I reported a while back that via686a sometimes worked and sometimes didn't. Playing with rmmoding and modprobing the modules (in various combinations, including i2c-isa and i2c-core), seemed to make a difference, but I couldn't figure out what made it work or not and never got to the bottom of it.

#4 lore raw
In reply to Jean Delvare

It looks like when i2c-viapro is loaded, then via686a won't register. Maybe a PCI registration conflict?

Quoted 35 lines · Jean Delvare
Quoted 2 lines

For all i2c accesses you need an i2c bus address 0x00 - 0x7f. This concept doesn't work for isa busses.

Oh yeah I must be stupid. This is why there is isadump for them.

Quoted 9 lines
Quoted 3 lines

2* Is i2c-isa broken in 2.6? The sensors-detect script says I should use i2c-isa + via686a. I load both and have nothing in sensors. It is with 2.6.1-rc1. It used to work with 2.4.x + i2c-2.8.x.

I reported a while back that via686a sometimes worked and sometimes didn't. Playing with rmmoding and modprobing the modules (in various combinations, including i2c-isa and i2c-core), seemed to make a difference, but I couldn't figure out what made it work or not and never got to the bottom of it.

I made a few tests on my A7V133-C, where there are two sensor chips:
via686a on i2c-isa and as99127f on i2c-viapro. This is with linux 2.6.1-rc1.

It turns out that whichever driver is loaded second will not detect anything. If I load via686a first, it works and no as99127f is detected. If I load w83781d first, no via686a is detected. And it's only a matter of chip drivers. The order in which bus drivers are loaded doesn't matter.

Can you reproduce something similar on your side?

This would tend to demonstrate that the problem doesn't necessarily come from the via686a driver.

Thanks.

#5 lore raw
In reply to Jean Delvare
Quoted 6 lines · Mark Studebaker
Quoted 3 lines

1* Why is it that i2cdump does not work with i2c-isa? I understand that i2cdetect cannot work (since i2c-isa isn't a real i2c bus) but i2cdump does exactly what a chip driver could do if I'm not mistaking.

For all i2c accesses you need an i2c bus address 0x00 - 0x7f. This concept doesn't work for isa busses.

Does not work since i2c-isa is an empty algorithm and has neither i2c_xfer or smbus_xfer. All low-level access is handled internally in chip drivers. I think there is isadump?

The real benefit of i2c-isa was to use i2c-proc. With sysfs only i2c_detect (address parameter parser) in i2c-sensors.c is (sometimes) used. In addition, user progs may depend on data from /proc/bus/i2c* to find the chip.

Signature · 1 line
  Ky?sti M?lkki  <[email protected]>