RE: [PATCH 2.6.23] 83xx USB platform code rework

2007-07-03 Thread Li Yang-r58472
> -Original Message- > From: Stephen Rothwell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 04, 2007 12:15 PM > To: Li Yang-r58472 > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org > Subject: Re: [PATCH 2.6.23] 83xx USB platform code rework > > Hi Li, > > On Tue, 3

Re: [PATCH] powerpc: Add of_register_i2c_devices()

2007-07-03 Thread Guennadi Liakhovetski
On Wed, 4 Jul 2007, Segher Boessenkool wrote: > Your device is an rs5c372b. So, that's what you put in > your device tree. Simple so far, right? Yep. > Now some OF I2C code goes looking for IIC devices in the > device tree. It finds this thing, and from a table or > something it derives that

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Paul Mackerras
Josh Boyer writes: > Selfishly, that's why I listed it as June 2008 to begin with. We've got > base 440 support in arch/powerpc now, but it needs more work. And I > just started 405 this morning. > > However, I definitely want some date present when arch/ppc will go away. > Otherwise it will la

Re: [PATCH 2/3] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane.

2007-07-03 Thread Tony Breeds
On Wed, Jul 04, 2007 at 02:27:48PM +1000, Michael Ellerman wrote: > Is this what other archs do? They either use jiffies, or AFAICT an external counter that is initialised to 0 at system powerup. Yours Tony linux.conf.auhttp://linux.conf.au/ || http://lca2008.linux.org.au/ Jan 28 -

Re: [PATCH 2/3] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane.

2007-07-03 Thread Michael Ellerman
On Wed, 2007-07-04 at 14:04 +1000, Tony Breeds wrote: > When booting a current kernel with CONFIG_PRINTK_TIME enabled you'll > see messages like: > > [0.00] time_init: decrementer frequency = 188.044000 MHz > [0.00] time_init: processor frequency = 1504.352000 MHz > [3712914.4362

Re: [PATCH 2.6.23] 83xx USB platform code rework

2007-07-03 Thread Stephen Rothwell
Hi Li, On Tue, 3 Jul 2007 17:43:16 +0800 Li Yang <[EMAIL PROTECTED]> wrote: > > Add 831x USB platform setup code and rework 834x USB > platform setup code. Move USB platform code to usb.c > for different boards with CPU of the same series to share > the USB initialization code. If there really

[PATCH 3/3] Initial cut to add __read_mostly support for powerpc.

2007-07-03 Thread Tony Breeds
Signed-off-by: Tony Breeds <[EMAIL PROTECTED]> --- This didn't get musch feedback the first time I posted it, so it's either perfect ;P or it got missed. arch/powerpc/kernel/vmlinux.lds.S |6 ++ include/asm-powerpc/cache.h |2 ++ 2 files changed, 8 insertions(+) Index: working/

[PATCH 1/3] Create a dummy zImage if no valid platform has been selected.

2007-07-03 Thread Tony Breeds
Signed-off-by: Tony Breeds <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile | 10 ++ 1 file changed, 10 insertions(+) Index: working/arch/powerpc/boot/Makefile === --- working.orig/arch/powerpc/boot/Makefile +++ working/a

[PATCH 2/3] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane.

2007-07-03 Thread Tony Breeds
When booting a current kernel with CONFIG_PRINTK_TIME enabled you'll see messages like: [0.00] time_init: decrementer frequency = 188.044000 MHz [0.00] time_init: processor frequency = 1504.352000 MHz [3712914.436297] Console: colour dummy device 80x25 This cause by the initiali

[PATCH 0/3] Patches for consideration for 2.6.23.

2007-07-03 Thread Tony Breeds
This is set of 3 patches that have been sent through the list as RFCs. I believe that I've addressed any feedback that was raised. Each of the patches is independant of the other and order is not important. More feedback is always welcome. Yours Tony linux.conf.auhttp://linux.conf.au

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Paul Mackerras
Scott Wood writes: > Is there any particular reason that of_device_is_compatible uses > strncasecmp()? Besides the OF spec saying that names (and thus > compatibles) are case sensitive, the "n" part screws up matching when a > subset of a string is not a more generic version thereof. For exam

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Ishizaki Kou
Paul-san, Could you add these two patches? [PATCH] of_serial: ignore unknown serial port http://patchwork.ozlabs.org/linuxppc/patch?id=11421 [PATCH] of_serial: add port type checking http://patchwork.ozlabs.org/linuxppc/patch?id=11422 Best regards, Kou Ishizaki ___

[patch v4] PS3: Bootwrapper support.

2007-07-03 Thread Geoff Levand
Subject: PS3: Bootwrapper support. Add support to build the PS3 flash rom image and remove some unneeded lmb calls. The PS3's lv1 loader supports loading gzipped binary images from flash rom to addr zero. The loader enters the image at addr 0x100. In this implementation a bootwrapper overlay is

Re: [PATCH] powerpc: Add of_register_i2c_devices()

2007-07-03 Thread Segher Boessenkool
>> Just use "compatible" exactly the way it is meant to be >> used and your life will be so much simpler. And don't >> even think about using a very generic property like "model" >> for a purpose totally different from its intended purpose. > > AFAIU, the only way currently to attach an i2c device

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Segher Boessenkool
>> What's the value add in doing this? The code to handle both cases >> still >> has to be in there (just under ifdef now). Is there actually any harm >> in doing case-insensitive matching today, where things break because >> there are conflicting properties with different cases? > > Not for case

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Segher Boessenkool
>> How about a CONFIG_NOT_BROKEN_DEVICE_TREE that disables this and >> other >> legacy stuff? If unset, warnings will be printed whenever broken >> things >> are detected. Boards which need proper device tree parsing can >> select >> the config option. >> >> I'd prefer the other way around

Re: [PATCH] powerpc: Add of_register_i2c_devices()

2007-07-03 Thread Guennadi Liakhovetski
On Tue, 3 Jul 2007, Segher Boessenkool wrote: > Just use "compatible" exactly the way it is meant to be > used and your life will be so much simpler. And don't > even think about using a very generic property like "model" > for a purpose totally different from its intended purpose. AFAIU, the on

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Scott Wood
Olof Johansson wrote: > On Tue, Jul 03, 2007 at 05:15:11PM -0500, Scott Wood wrote: > > >>How about a CONFIG_NOT_BROKEN_DEVICE_TREE that disables this and other >>legacy stuff? If unset, warnings will be printed whenever broken things >>are detected. Boards which need proper device tree parsi

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Olof Johansson
On Tue, Jul 03, 2007 at 05:15:11PM -0500, Scott Wood wrote: > How about a CONFIG_NOT_BROKEN_DEVICE_TREE that disables this and other > legacy stuff? If unset, warnings will be printed whenever broken things > are detected. Boards which need proper device tree parsing can select > the config o

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Scott Wood
Segher Boessenkool wrote: > Huh? Are you saying things are matching on substrings? > That's even more wrong! Yes, unfortunately. I tried getting the BRG frequency from the fsl,cpm node and I got the fsl,cpm-enet node instead. :-P ucc_geth requires device_type == network to avoid matching ucc_g

Re: Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Segher Boessenkool
> Is there any particular reason that of_device_is_compatible uses > strncasecmp()? It always has, so some things might break with certain device trees when we make the matching more strict/correct. > Besides the OF spec saying that names (and thus > compatibles) are case sensitive, the "n" part

Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

2007-07-03 Thread Scott Wood
Is there any particular reason that of_device_is_compatible uses strncasecmp()? Besides the OF spec saying that names (and thus compatibles) are case sensitive, the "n" part screws up matching when a subset of a string is not a more generic version thereof. For example, ucc_geth v. ucc_geth_p

Re: patches pushed to powerpc.git for-2.6.23 branch

2007-07-03 Thread Scott Wood
On Thu, Jun 28, 2007 at 10:55:04PM +1000, Paul Mackerras wrote: > I have just pushed some more patches to the for-2.6.23 branch of > powerpc.git. There are still more to go, of course. :) > > If anyone has a patch that was posted more than a couple of weeks ago > that they want to go in and that

Re: [CURIOUSITY] When will we stop caring about arch/ppc?

2007-07-03 Thread Scott Wood
On Tue, Jun 26, 2007 at 10:18:11AM -0700, Mark A. Greer wrote: > Actually, I wouldn't have a problem with getting rid of arch/ppc right > now. It won't really be lost, just git checkout your favorite tag that > still has it. It'll get rid of code people shouldn't be worrying about > anymore anywa

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Grant Likely
On 7/3/07, Josh Boyer <[EMAIL PROTECTED]> wrote: > > Please don't; us 4xx folks aren't yet ready. Active support for > > Xilinx Virtex in arch/ppc only right now. I want to move over to > > arch/powerpc; but end of year is rather aggressive. > > Selfishly, that's why I listed it as June 2008 to b

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Josh Boyer
On Tue, 2007-07-03 at 11:03 -0600, Grant Likely wrote: > On 7/3/07, Tom Gall <[EMAIL PROTECTED]> wrote: > > June 2008 is a long time away to let this linger. Why not say by End of the > > year 2007? That should give folks essentially two more 2.6 releases. > > Please don't; us 4xx folks aren't ye

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Grant Likely
On 7/3/07, Tom Gall <[EMAIL PROTECTED]> wrote: > June 2008 is a long time away to let this linger. Why not say by End of the > year 2007? That should give folks essentially two more 2.6 releases. Please don't; us 4xx folks aren't yet ready. Active support for Xilinx Virtex in arch/ppc only right

[patch 2/3] Add missing DATA_DATA in powerpc

2007-07-03 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: linuxppc-dev@ozlabs.org -- arch/powerpc/kernel/vmlinux.lds.S |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-2.6-lttng/arch/powerpc/kernel/vmlinux.lds.S

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Geert Uytterhoeven
On Tue, 3 Jul 2007, Josh Boyer wrote: > And Segher had made a suggestion that it could be officially killed > during the PowerPC BOF at OLS 2008 for fun. But honestly, it doesn't ^^^ Or perhaps TLS/MLS/VLS/... (forgot about the 4th alternative location)? ;-) With kind

Re: How to handle patches that cross maintainers?

2007-07-03 Thread Mauro Carvalho Chehab
Em Ter, 2007-07-03 às 04:01 -0500, Kumar Gala escreveu: > Andrew, > > I was hoping to get your input on how to handle patches that cross > maintainers. I've got a patch that is pretty PPC specific, but > happens to touch some drivers as well. > > Here's the diffstat to get a rough idea: > >

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Josh Boyer
On Tue, 2007-07-03 at 09:47 -0500, Tom Gall wrote: > June 2008 is a long time away to let this linger. Why not say by End > of the year 2007? That should give folks essentially two more 2.6 > releases. A year seemed like the appropriate amount of time for an arch removal. And Segher had made a su

Re: [PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Tom Gall
June 2008 is a long time away to let this linger. Why not say by End of the year 2007? That should give folks essentially two more 2.6 releases. Regards, Tom On 7/3/07, Josh Boyer <[EMAIL PROTECTED]> wrote: The arch/ppc tree has been in a semi-nebulous "bug fix only" state for a few kernel r

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Christoph Hellwig
On Tue, Jul 03, 2007 at 03:36:09PM +1000, Paul Mackerras wrote: > The following patches have been added to the for-2.6.23 branch on > powerpc.git. In addition, the master branch has the merge of the > for-2.6.23 and merge branches, which means that it is up-to-date with > Linus' 2.6.22-rc7 plus th

Re: How to handle patches that cross maintainers?

2007-07-03 Thread Christoph Hellwig
On Tue, Jul 03, 2007 at 04:01:20AM -0500, Kumar Gala wrote: > Andrew, > > I was hoping to get your input on how to handle patches that cross > maintainers. I've got a patch that is pretty PPC specific, but > happens to touch some drivers as well. I think the real question is why the heck doe

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Christoph Hellwig
On Tue, Jul 03, 2007 at 03:36:09PM +1000, Paul Mackerras wrote: > [POWERPC] spufs: Add stat file to spufs > [POWERPC] spufs: Add spu stats in sysfs These two should not go to Linus yet, they'll probably need quite a bit of rework. ___ Linux

[PATCH v2] Schedule removal of arch/ppc

2007-07-03 Thread Josh Boyer
The arch/ppc tree has been in a semi-nebulous "bug fix only" state for a few kernel releases now. The patch below officially declares this as of the 2.6.22 kernel release and schedules arch/ppc for removal in June of 2008. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- Documentation/feature-

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Josh Boyer
On Tue, 2007-07-03 at 15:36 +1000, Paul Mackerras wrote: > The following patches have been added to the for-2.6.23 branch on > powerpc.git. In addition, the master branch has the merge of the > for-2.6.23 and merge branches, which means that it is up-to-date with > Linus' 2.6.22-rc7 plus the patch

Re: [PATCH 3/3] First cut at PReP support for arch/powerpc

2007-07-03 Thread Segher Boessenkool
+ external-control; Really? >>> >>> Well, is anybody actually using eciwx/ecowx? >> >> That's not the point -- the device tree should only >> say "external-control" if the CPU actually supports >> it; AFAIK, that's 601 only. > > I wonder whether you are mixing up ext

Re: [PATCH] powerpc: Add of_register_i2c_devices()

2007-07-03 Thread Segher Boessenkool
>>> + addr = of_get_property(node, "reg", &len); >>> + if (!addr || len < sizeof(int) || *addr > 0x) >>> + continue; >> >> Addresses aren't 16 bit AFAIK? > > Some i2c busses support 10 bits addressing... All I2C busses. All I2C devices, too, it's just tha

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Li Yang-r58472
> -Original Message- > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 7:20 PM > To: Li Yang-r58472 > Cc: linuxppc-dev Development; Netdev; Fleming Andy-afleming > Subject: RE: [PATCH] ucc_geth.c, make PHY device optional. > > On Tue, 2007-07-03 at 16:22 +08

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Joakim Tjernlund
On Tue, 2007-07-03 at 16:22 +0800, Li Yang-r58472 wrote: > > -Original Message- > > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 03, 2007 3:21 PM > > To: Li Yang-r58472 > > Cc: linuxppc-dev Development; Netdev; Fleming Andy-afleming > > Subject: RE: [PATCH] ucc_g

Re: PCI IO range limitation

2007-07-03 Thread Benjamin Herrenschmidt
On Tue, 2007-07-03 at 11:24 +0200, Marian Balakowicz wrote: > Benjamin Herrenschmidt wrote: > > On Thu, 2007-06-28 at 12:20 +0200, Marian Balakowicz wrote: > >> I guess that with the above dropping of non-zero based PCI IO ranges > >> this is not supposed to be working. But does anyone know why? >

Re: [PATCH 3/3] First cut at PReP support for arch/powerpc

2007-07-03 Thread Gabriel Paubert
On Mon, Jul 02, 2007 at 01:51:42PM +0200, Segher Boessenkool wrote: > >>+ external-control; > >> > >>Really? > > > >Well, is anybody actually using eciwx/ecowx? > > That's not the point -- the device tree should only > say "external-control" if the CPU actually supports > it; AFA

Re: How to handle patches that cross maintainers?

2007-07-03 Thread Andrew Morton
On Tue, 3 Jul 2007 04:01:20 -0500 Kumar Gala <[EMAIL PROTECTED]> wrote: > Andrew, > > I was hoping to get your input on how to handle patches that cross > maintainers. I've got a patch that is pretty PPC specific, but > happens to touch some drivers as well. > > Here's the diffstat to get a

[PATCH 2.6.23] 83xx USB platform code rework

2007-07-03 Thread Li Yang
Add 831x USB platform setup code and rework 834x USB platform setup code. Move USB platform code to usb.c for different boards with CPU of the same series to share the USB initialization code. Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- Respin fo

Re: PCI IO range limitation

2007-07-03 Thread Marian Balakowicz
Benjamin Herrenschmidt wrote: > On Thu, 2007-06-28 at 12:20 +0200, Marian Balakowicz wrote: >> I guess that with the above dropping of non-zero based PCI IO ranges >> this is not supposed to be working. But does anyone know why? > > We just fixed that for 64 bits but 32 bits still has the limitati

Patches added to for_paulus (queue'd for 2.6.23)

2007-07-03 Thread Kumar Gala
I'm still working through the back log of patches related to ppc32/ fsl. If there are patches people want to make sure get into 2.6.23 let me know. David Gibson (2): [POWERPC] Split out asm-ppc/mmu.h portions for Freescale Book-E [POWERPC] Split out asm-ppc/mmu.h portions for Pow

How to handle patches that cross maintainers?

2007-07-03 Thread Kumar Gala
Andrew, I was hoping to get your input on how to handle patches that cross maintainers. I've got a patch that is pretty PPC specific, but happens to touch some drivers as well. Here's the diffstat to get a rough idea: arch/powerpc/kernel/io.c| 12 ++-- arch/powerpc/

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Zang Roy-r61911
On Tue, 2007-07-03 at 16:32, Kumar Gala wrote: > On Jul 3, 2007, at 3:25 AM, Zang Roy-r61911 wrote: > > > Paul > > > > Could you help to add these patches: > > > > 1 add cuboot for 7448hpc2 board > > http://ozlabs.org/pipermail/linuxppc-dev/2007-May/036834.html > > Reviewing this one. > It has b

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Kumar Gala
On Jul 3, 2007, at 3:25 AM, Zang Roy-r61911 wrote: > Paul > > Could you help to add these patches: > > 1 add cuboot for 7448hpc2 board > http://ozlabs.org/pipermail/linuxppc-dev/2007-May/036834.html Reviewing this one. > 2. Remove redundant pci_read_irq_line() function for 85xx platform > Acked

Re: Patches added to 2.6.23 branch

2007-07-03 Thread Zang Roy-r61911
Paul Could you help to add these patches: 1 add cuboot for 7448hpc2 board http://ozlabs.org/pipermail/linuxppc-dev/2007-May/036834.html 2. Remove redundant pci_read_irq_line() function for 85xx platform Acked by Ben http://ozlabs.org/pipermail/linuxppc-dev/2007-June/037117.html 3. Fix e500 v2 c

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Li Yang-r58472
> -Original Message- > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 3:21 PM > To: Li Yang-r58472 > Cc: linuxppc-dev Development; Netdev; Fleming Andy-afleming > Subject: RE: [PATCH] ucc_geth.c, make PHY device optional. > > On Tue, 2007-07-03 at 11:42 +08

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Joakim Tjernlund
On Tue, 2007-07-03 at 11:42 +0800, Li Yang-r58472 wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > > Behalf Of Joakim Tjernlund > > Sent: Tuesday, July 03, 2007 8:52 AM > > To: 'linuxppc-dev Development'; 'Netdev'; Li Yang-r58472 > > Subject: [PATCH