[Fwd: Re: New bus driver: XSCALE iop3xx]
Sorry, I'm going to have to punt these.
Phil
-------- Original Message --------
From: - Fri May 30 09:26:18 2003
X-UIDL: f3881e4bf6c98c6a
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
Return-Path: <[email protected]>
Received: from anchor-post-31.mail.demon.net
(anchor-post-31.mail.demon.net [194.217.242.89]) by Ren.netroedge.com (8.12.8p1/8.9.1) with ESMTP id h4UF9r4e028260 for <[email protected]>; Fri, 30 May 2003 08:09:54 -0700
Received: from remware.demon.co.uk ([194.222.70.153]) by
anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 19Llch-0008tR-0V for [email protected]; Fri, 30 May 2003 16:16:51 +0100
Message-ID: <[email protected]>
Date: Fri, 30 May 2003 16:16:50 +0100
From: Peter Milne <[email protected]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b)
Gecko/20030507
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Philip Edelbrock <[email protected]>
Subject: Re: New bus driver: XSCALE iop3xx
References: <[email protected]>
<[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]>
In-Reply-To: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-SpamBouncer: 1.5 (8/16/02)
X-SBClass: OK
X-Spambayes-Classification: ham; 0.00
Hi Phil
cvs access is good (after stopped typing in the hash and entered the clear text :-) ).
So I've checked in the driver comprising kernel/i2c-iop3xx.[ch], and Module.mk
But the next step of patching into the kernel has confused me, I hope you can help
I'm using a 2.5 series kernel, so I want to end up with an entry in drivers/i2c/Kconfig and drivers/i2c/Makefile;
It looks like mkpatch/mkpatch.pl will update the Makefile, but no sign of Kconfig.
I've messed with the old style Config.in, but am not sure if it is exactly right, or how to test.
(running mkpatch.pl against my source tree yields a patch with no menction of my files, so I'm not
sure if this is good or not!) So that was steps 127 thru 135.
I've appended the cvs diff in my mkpatch directory, looks harmless, should I check them in?.
Thanks for your help
Peter.
************************************************************************
cvs diff in mkpatch
cvs server: Diffing .
Index: Config.in
=================================RCS file: /home/cvs/i2c/mkpatch/Config.in,v retrieving revision 1.19
diff -r1.19 Config.in
46a47,50
Quoted 2 lines
if [ "$CONFIG_ARCH_IOP3XX" = "y" ]; then
dep_tristate'XSCALE IOP3xx on-chip i2C Algorithm'
CONFIG_I2C_IOP3XX $CONFIG_I2C
Quoted 2 lines
fi
Index: FILES
=================================RCS file: /home/cvs/i2c/mkpatch/FILES,v retrieving revision 1.14
diff -r1.14 FILES
11a12,13
Quoted 2 lines
kernel/i2c-iop3xx.cdrivers/i2c/i2c-iop3xx.ckernel/i2c-iop3xx.hdrivers/i2c/i2c-iop3xx.h
Index: mkpatch.pl
=================================RCS file: /home/cvs/i2c/mkpatch/mkpatch.pl,v retrieving revision 1.47
diff -r1.47 mkpatch.pl
244a245,248
Quoted 4 lines
XSCALE IOP3XX interface
CONFIG_I2C_IOP3XX
This supports the internal Xscale 803xx i2c Bus Interface Units (biu)
357a362
Quoted 1 line
obj-$(CONFIG_i2C_IOP3XX) += i2c-iop3xx.o
Quoted 20 lines · Philip Edelbrock
You're added. Let me know if you have troubles logging in or commiting files, and be read up before commiting files or making changes.
BTW- bus drivers need to be commited, but device access can be done through
/dev/i2cdevice files in normal user space, if it helps.Phil
Quoted 6 lines · Peter Milne
Hi Phil
Thanks; I was only at the stage of needing guest access :-), but since you mention it,
please make me
Quoted 2 lines
I'm using a 2.5 series kernel, so I want to end up with an entry in
drivers/i2c/Kconfiganddrivers/i2c/Makefile;
Descriptions of how to modify these files was in the May 2003 issue of Linux Journal. You might want to read that, as it will help you out.
Good luck,
greg k-h
Quoted 5 lines · Peter Milne
Mark
I'm only interested in 2.5 atm, so I'll leave it there.
(Off to find LinuxJournal on advice from Greg :-)
And when finished, a patch sent to the same Greg would be nice so that he can include it in the main kernel tree :)
thanks,
greg k-h
mkpatch doesn't work for 2.5 kernels, so don't mess with anything in the mkpatch directory unless your driver works on 2.4 kernels.
Since you checked it into the HEAD branch and not the lk2-4 branch I assume it's 2.5 only? If so work directly with Greg, and you probably didn't need to check the driver into CVS at all.
Quoted 124 lines · Philip Edelbrock
Sorry, I'm going to have to punt these.
Phil
-------- Original Message --------
From: - Fri May 30 09:26:18 2003 X-UIDL: f3881e4bf6c98c6a X-Mozilla-Status: 0011 X-Mozilla-Status2: 00000000 Return-Path: <[email protected]> Received: from anchor-post-31.mail.demon.net(anchor-post-31.mail.demon.net [194.217.242.89]) by Ren.netroedge.com (8.12.8p1/8.9.1) with ESMTP id h4UF9r4e028260 for <[email protected]>; Fri, 30 May 2003 08:09:54 -0700
Received: from remware.demon.co.uk ([194.222.70.153]) by
anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 19Llch-0008tR-0V for [email protected]; Fri, 30 May 2003 16:16:51 +0100Message-ID: <[email protected]> Date: Fri, 30 May 2003 16:16:50 +0100 From: Peter Milne <[email protected]> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Philip Edelbrock <[email protected]> Subject: Re: New bus driver: XSCALE iop3xx References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> In-Reply-To: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SpamBouncer: 1.5 (8/16/02) X-SBClass: OK X-Spambayes-Classification: ham; 0.00Hi Phil
cvs access is good (after stopped typing in the hash and entered the clear text :-) ).
So I've checked in the driver comprising kernel/i2c-iop3xx.[ch], and Module.mk
But the next step of patching into the kernel has confused me, I hope you can help
I'm using a 2.5 series kernel, so I want to end up with an entry in
drivers/i2c/Kconfiganddrivers/i2c/Makefile;It looks like
mkpatch/mkpatch.plwill update theMakefile, but no sign ofKconfig.I've messed with the old style Config.in, but am not sure if it is exactly right, or how to test.
(running mkpatch.pl against my source tree yields a patch with no menction of my files, so I'm not
sure if this is good or not!) So that was steps 127 thru 135.I've appended the cvs diff in my mkpatch directory, looks harmless, should I check them in?.
Thanks for your help
Peter.
************************************************************************
cvs diff in mkpatch
cvs server: Diffing .
Index: Config.in
=================================> RCS file:/home/cvs/i2c/mkpatch/Config.in,vretrieving revision 1.19
diff -r1.19 Config.in
46a47,50Quoted 2 lines
if [ "$CONFIG_ARCH_IOP3XX" = "y" ]; then
dep_tristate'XSCALE IOP3xx on-chip i2C Algorithm'
CONFIG_I2C_IOP3XX$CONFIG_I2CQuoted 2 lines
fi
Index: FILES
=================================> RCS file:/home/cvs/i2c/mkpatch/FILES,vretrieving revision 1.14
diff -r1.14 FILES
11a12,13Quoted 2 lines
kernel/i2c-iop3xx.cdrivers/i2c/i2c-iop3xx.ckernel/i2c-iop3xx.hdrivers/i2c/i2c-iop3xx.hIndex: mkpatch.pl
=================================> RCS file:/home/cvs/i2c/mkpatch/mkpatch.pl,vretrieving revision 1.47
diff -r1.47 mkpatch.pl
244a245,248Quoted 4 lines
XSCALE IOP3XX interface
CONFIG_I2C_IOP3XX
This supports the internal Xscale 803xx i2c Bus Interface Units (biu)357a362
Quoted 1 line
obj-$(CONFIG_i2C_IOP3XX) += i2c-iop3xx.o
Quoted 20 lines · Philip Edelbrock
You're added. Let me know if you have troubles logging in or commiting files, and be read up before commiting files or making changes.
BTW- bus drivers need to be commited, but device access can be done through
/dev/i2cdevice files in normal user space, if it helps.Phil
Quoted 6 lines · Peter Milne
Hi Phil
Thanks; I was only at the stage of needing guest access :-), but since you mention it,
please make me
Mark
I'm only interested in 2.5 atm, so I'll leave it there.
(Off to find LinuxJournal on advice from Greg :-)
/Peter
Quoted 16 lines · Mark Studebaker
mkpatch doesn't work for 2.5 kernels, so don't mess with anything in the mkpatch directory unless your driver works on 2.4 kernels.
Since you checked it into the HEAD branch and not the lk2-4 branch I assume it's 2.5 only? If so work directly with Greg, and you probably didn't need to check the driver into CVS at all.
Quoted 5 lines · Philip Edelbrock
Sorry, I'm going to have to punt these.
Phil