Skip to contentSkip to conversation

i2c patches for 2.5.15

DISCUSSION Mark D. Studebaker 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Albert,
sorry for my slow response.

I looked at the new 2.5.17-i2c-* patches in your directory and they look good.

I went back to look at cause of the CONFIG changes.
I applied a patch last October which changed the
names in Config.in to match the names at the bottom of i2c-core.c.

I think that was a mistake, we should have changed i2c-core.c. That's what's now in the kernel, and you maintain that by not changing the names in your patch. Good.

I'll change Config.in and i2c-core.c in CVS to match what's in the kernel.

It's been a week since you posted your patches so
I recommend you go ahead and send them to Linus.

Let us know how it goes.
If you need any help summarizing the changes for Linus then let me know. The big change in i2c-core.c is the addition of i2c block reads and writes, in case that wasn't obvious.

Thanks again for your hard work.

mds

Quoted 50 lines · Albert Cranford

Hi all,
The latest patches against 2.5.15 with everyones advice. Comments first and URL links at bottom of page. Later,
Albert

patch-1

# leave CONFIG names as in kernel
patch-2
# i2c-core.c:Leave LINUX_VERSION in kernel.  Leave i2c_debug=1.  Leave
#   CONFIG names as in the kernel.  Remove #ifdef MODULE_LICENSE around
#   MODULE_LICENSE.
# i2c-dev.c:Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
#   Remove compatibality code for < 2.4.0
# i2c-proc.c: Print message on kmalloc failure.  Leave ENOMEM as in kernel.
#   Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.  Remove 2.2.19 compat
#   code.
patch-3
# i2c-algo-bit.c: Leave kernel time_before/after_eq
#   Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# i2c-algo-pcf.c: Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# i2c/i2c-elektor.c: Leave kernel __exit pcf_isa_exit(void)
#   Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# i2c-elv.c: Leave kernel __exit bit_elv_exit(void)
#   Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# i2c-philips-par.c: Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# i2c/i2c-velleman.c: Leave kernel __exit bit_velle_exit(void)
#   Remove #ifdef MODULE_LICENSE around MODULE_LICENSE.
# Drop i2c-algo-8xx.[ch] deltas
# Drop i2c-algo-ppc405.[ch] deltas
# Drop i2c-pcf-epp.c deltas
# Drop i2c-ppc405.[ch] deltas
# Drop i2c-ppc405adap.h deltas
# Drop i2c-pport.c deltas
# Drop i2c-rpx.c deltas
patch-4
# i2c-elektor.c:Adding call to pcf_isa_init to i2c_pcfisa_init causes:
# i2c-elektor.o: In function `i2c_pcfisa_init':
# i2c-elektor.o(.text.init+0x95): undefined reference to `local symbol
# i2c-elektor.c: fix by removing __exit for inline compiling.

http://personal.atl.bellsouth.net/mia/a/c/ac9410/albert/patches/i2c-1.html
http://personal.atl.bellsouth.net/mia/a/c/ac9410/albert/patches/i2c-2.html
http://personal.atl.bellsouth.net/mia/a/c/ac9410/albert/patches/i2c-3.html
http://personal.atl.bellsouth.net/mia/a/c/ac9410/albert/patches/i2c-4.html

--
Albert Cranford Deerfield Beach FL USA
[email protected]

#1 lore raw
Quoted 5 lines · Mark D. Studebaker

Note this recent change,
not sure what it does, this is post-2.5.17.
Anybody understand this change?

http://linux.bkbits.net:8080/linux-2.5/diffs/drivers/i2c/[email protected]?nav=index.html|src/.|src/drivers|src/drivers/i2c|hist/drivers/i2c/i2c-proc.c

This appears to be removing compatibility #ifdefs to make things more readable (Which of course is a PITA for out-of-kernel things and projects which still support 2.2.x/2.4.x/2.0.x) and proc cleanups/updates.

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
#2 lore raw
In reply to Mark D. Studebaker

Albert + everyone,

A good place to look for 2.5 changes in bitkeeper that we have to track or deal with is here

http://linux.bkbits.net:8080/linux-2.5/src/drivers/i2c?nav=index.html|src/.|src/drivers

Note this recent change,
not sure what it does, this is post-2.5.17.
Anybody understand this change?

http://linux.bkbits.net:8080/linux-2.5/diffs/drivers/i2c/[email protected]?nav=index.html|src/.|src/drivers|src/drivers/i2c|hist/drivers/i2c/i2c-proc.c

Quoted 2 lines · Mark D. Studebaker