Skip to contentSkip to conversation

New patches of 2.8.0 against 2.4.22...

DISCUSSION Steven J. Hill 2 participants 5 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Greetings.

I have just uploaded new patches to my FTP site:

ftp://ftp.realitydiluted.com/linux/i2c

Please take a look at the SCx200 patch as it fixes some compile dependencies. Thanks.

-Steve

#1 lore raw
Quoted 7 lines

I have just uploaded new patches to my FTP site:

ftp://ftp.realitydiluted.com/linux/i2c

Please take a look at the SCx200 patch as it fixes some compile dependencies. Thanks.

Thanks! I just updated our download page to reflect that. I'll take a look at the scx patch as soon as possible.

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

Please take a look at the SCx200 patch as it fixes some compile dependencies. Thanks.

Hi Steve,

There are a few differences between your patch and mine WRT the SCx200 driver(s).

The first one is that your patch doesn't add the operations on the new owner field of the i2c_adapter structure. That's something you'd have to fix since that's how module usage count is now achieved.

The second one is in Config.in. For CONFIG_SCx200_I2C, you added a dependency on CONFIG_SCx200_GPIO, while I *replaced* the dependency on CONFIG_SCx200 by one on CONFIG_SCx200_GPIO. While both are OK, my solution is faster since CONFIG_SCx200_GPIO itself depends on CONFIG_SCx200 (and I'm not even sure CONFIG_SCx200_I2C depends on CONFIG_SCx200 itself at all). So, unless you there's a policy I'm not aware of for that kind of cases, I invite you to do as I do.

The third and last one, still in Config.in, is that I replaced the dependency on CONFIG_I2C by one on CONFIG_I2C_ALGOBIT for CONFIG_SCx200_ACB. I just checked why I did that, and I believe it is simply because CONFIG_SCx200_ACB is inside the 'if [ "$CONFIG_I2C_ALGOBIT" != "n" ]' block. After reading the code again, it looks like it should *not* be (it doesn't use i2c-algo-bit), so my fix is wrong. The right thing to do is probably to move that line out of the 'if [ "$CONFIG_I2C_ALGOBIT" != "n" ]' block (and keep the dependencies the way they are, since they seem to be correct).

What do you think ?

Thanks for your help.

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

The stuff I did was due to linking errors associated with the SCx200 drivers when compiling everything in statically and also header file dependency problems. I am happy with your suggestions as long as testing is done with both statically linking and as modules. I do not have any SCx200 devices, so I just guessed at the dependencies.

Same here. I do not have such devices, but wanted the dependencies fixed. A careful look at the includes helped a lot finding the best fixes.

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

The first one is that your patch doesn't add the operations on the new owner field of the i2c_adapter structure. That's something you'd have to fix since that's how module usage count is now achieved.

I haven't looked at this in detail. I'll probably have more questions later on that.

Quoted 8 lines

The second one is in Config.in. For CONFIG_SCx200_I2C, you added a dependency on CONFIG_SCx200_GPIO, while I *replaced* the dependency on CONFIG_SCx200 by one on CONFIG_SCx200_GPIO. While both are OK, my solution is faster since CONFIG_SCx200_GPIO itself depends on CONFIG_SCx200 (and I'm not even sure CONFIG_SCx200_I2C depends on CONFIG_SCx200 itself at all). So, unless you there's a policy I'm not aware of for that kind of cases, I invite you to do as I do.

Quoted 10 lines

The third and last one, still in Config.in, is that I replaced the dependency on CONFIG_I2C by one on CONFIG_I2C_ALGOBIT for CONFIG_SCx200_ACB. I just checked why I did that, and I believe it is simply because CONFIG_SCx200_ACB is inside the 'if [ "$CONFIG_I2C_ALGOBIT" != "n" ]' block. After reading the code again, it looks like it should *not* be (it doesn't use i2c-algo-bit), so my fix is wrong. The right thing to do is probably to move that line out of the 'if [ "$CONFIG_I2C_ALGOBIT" != "n" ]' block (and keep the dependencies the way they are, since they seem to be correct).

The stuff I did was due to linking errors associated with the SCx200 drivers when compiling everything in statically and also header file dependency problems. I am happy with your suggestions as long as testing is done with both statically linking and as modules. I do not have any SCx200 devices, so I just guessed at the dependencies.

-Steve