New patches of 2.8.0 against 2.4.22...
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
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/
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/
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/
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_adapterstructure. 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 onCONFIG_SCx200_GPIO, while I *replaced* the dependency onCONFIG_SCx200by one onCONFIG_SCx200_GPIO. While both are OK, my solution is faster sinceCONFIG_SCx200_GPIOitself depends onCONFIG_SCx200(and I'm not even sureCONFIG_SCx200_I2Cdepends onCONFIG_SCx200itself 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_I2Cby one onCONFIG_I2C_ALGOBITforCONFIG_SCx200_ACB. I just checked why I did that, and I believe it is simply becauseCONFIG_SCx200_ACBis 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