Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-21 Thread Grant Likely
2009/5/21 Piotr Zięcik : > Thursday 14 May 2009 16:00:33 Grant Likely wrote: >> > MPC5121 support was added to drivers/net/fs_enet. MPC52xx uses >> > drivers/net/fec_mpc52xx.c. Do you think that creating one universal >> > driver from these two is now possible? You said that it should be easy, >> >

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-21 Thread Piotr Zięcik
Thursday 14 May 2009 16:00:33 Grant Likely wrote: > > MPC5121 support was added to drivers/net/fs_enet. MPC52xx uses > > drivers/net/fec_mpc52xx.c. Do you think that creating one universal > > driver from these two is now possible? You said that it should be easy, > > however you also said that cac

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-19 Thread Benjamin Herrenschmidt
On Tue, 2009-05-19 at 13:26 +0200, Piotr Zięcik wrote: > Tuesday 19 May 2009 00:17:31 Benjamin Herrenschmidt wrote: > > > > We are close to the point where we can make this a runtime option > > though, by just having a different set of dma_ops hooked in. > > > > Is somebody currently working on it

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-19 Thread Piotr Zięcik
Tuesday 19 May 2009 00:17:31 Benjamin Herrenschmidt wrote: > > We are close to the point where we can make this a runtime option > though, by just having a different set of dma_ops hooked in. > Is somebody currently working on it? If yes, where we can see code ? -- Best Regards. Piotr Zięcik ___

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-18 Thread Benjamin Herrenschmidt
On Thu, 2009-05-14 at 08:00 -0600, Grant Likely wrote: > > All of this doesn't actually affect the driver code at all. It's all > handled by the kernel and the DMA apis. What it does affect is > multiplatform kernels. The DMA behaviour is set at compile time, not > run time, depending on the se

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-14 Thread Grant Likely
2009/5/14 Piotr Zięcik : > Thursday 07 May 2009 00:39:25 Grant Likely napisał(a): >> >> 512x are enabled in the same kernel? >> > >> > Hm... both architectures look sufficiently different to me that I >> > don't see sense in trying such a thing. Do you think that needs to be >> > supported? >> >> Y

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-14 Thread Piotr Zięcik
Thursday 07 May 2009 00:39:25 Grant Likely napisał(a): > >> 512x are enabled in the same kernel? > > > > Hm... both architectures look sufficiently different to me that I > > don't see sense in trying such a thing. Do you think that needs to be > > supported? > > Yes! :-) It's not hard to do and

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-10 Thread David Jander
On Friday 08 May 2009 09:52:51 David Miller wrote: > From: John Rigby > Date: Thu, 7 May 2009 20:02:53 -0600 > > > Also don't forget that the register map is the same on 512x, mx and > > coldfire platforms but not on the other ppc platforms so if you want > > to one binary to rule them all you wil

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-08 Thread David Miller
From: John Rigby Date: Thu, 7 May 2009 20:02:53 -0600 > Also don't forget that the register map is the same on 512x, mx and > coldfire platforms but not on the other ppc platforms so if you want > to one binary to rule them all you will need to have an offest table > or some such. I would sugges

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-07 Thread John Rigby
Wolfgang, Welcome to my world and why I gave up on this months ago. Everyone else, One thing to consider here is a rewrite with the goal of a new improved fec driver that would work on both 5121 and the various mx platforms that also have this same fec core. Also don't forget that the register

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-07 Thread Grant Likely
On Wed, May 6, 2009 at 4:41 PM, Wolfgang Denk wrote: > Dear Grant, > > In message you > wrote: >> >> > Agreed that it's ugly, but duplicatio9ng the code would have been even >> > worse. I don't think that it has multiplatform - at least not as long >> > as you don't ask for one image that runs o

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-07 Thread Kumar Gala
On May 6, 2009, at 5:01 PM, Wolfgang Denk wrote: Dear Grant, in message > you wrote: ... #ifdef CONFIG_FS_ENET_HAS_FEC +#ifdef CONFIG_FS_ENET_MPC5121_FEC +{ +.compatible = "fsl,mpc5121-fec", +.data = (void *)&fs_fec_ops, +}, +#else { .compatible = "fsl,pq1-f

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-07 Thread David Jander
On Thursday 07 May 2009 00:29:59 Grant Likely wrote: > On Wed, May 6, 2009 at 4:01 PM, Wolfgang Denk wrote: > > Dear Grant, > > > > in message > > you wrote: > > > > ... > > > >> > #ifdef CONFIG_FS_ENET_HAS_FEC > >> > +#ifdef CONFIG_FS_ENET_MPC5121_FEC > >> > +    { > >> > +        .compatible =

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Wolfgang Denk
Dear Grant, In message you wrote: > > > Agreed that it's ugly, but duplicatio9ng the code would have been even > > worse. I don't think that it has multiplatform - at least not as long > > as you don't ask for one image that runs on 83xx and on 512x. > > Actually, I *am* asking for one image th

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Grant Likely
On Wed, May 6, 2009 at 4:09 PM, Wolfgang Denk wrote: > Dear Scott, > > in message <4a01f602.2010...@freescale.com> you wrote: >> >> All of the above is duplicative (with even the same names) of stuff in >> asm/cpm.h.  Beyond just the duplication, what happens if both CPM2 and > > OK, I can try to

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Grant Likely
On Wed, May 6, 2009 at 4:01 PM, Wolfgang Denk wrote: > Dear Grant, > > in message you > wrote: >> > ... >> > #ifdef CONFIG_FS_ENET_HAS_FEC >> > +#ifdef CONFIG_FS_ENET_MPC5121_FEC >> > +    { >> > +        .compatible = "fsl,mpc5121-fec", >> > +        .data = (void *)&fs_fec_ops, >> > +    }, >>

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Wolfgang Denk
Dear Grant, in message you wrote: > ... > > #ifdef CONFIG_FS_ENET_HAS_FEC > > +#ifdef CONFIG_FS_ENET_MPC5121_FEC > > +{ > > +.compatible = "fsl,mpc5121-fec", > > +.data = (void *)&fs_fec_ops, > > +}, > > +#else > >{ > >.compatible = "fsl,pq1-fec-enet", > >

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Wolfgang Denk
Dear Scott, in message <4a01f602.2010...@freescale.com> you wrote: > > All of the above is duplicative (with even the same names) of stuff in > asm/cpm.h. Beyond just the duplication, what happens if both CPM2 and OK, I can try to reuse the definitions from that file. > 512x are enabled in th

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Wolfgang Denk
Dear David, In message <20090506.134003.261424694.da...@davemloft.net> you wrote: > > Would you be offended if I tell you that this is a horrible patch > submission? > > Your introductory email indicates 16 patches, yet the series indicates > there were 12, and that intro email is only posted to

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Scott Wood
Grant Likely wrote: #ifdef CONFIG_FS_ENET_HAS_FEC +#ifdef CONFIG_FS_ENET_MPC5121_FEC + { + .compatible = "fsl,mpc5121-fec", + .data = (void *)&fs_fec_ops, + }, +#else { .compatible = "fsl,pq1-fec-enet", .data = (void *)

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Scott Wood
Wolfgang Denk wrote: +/* + * Define the buffer descriptor structure. + */ +typedef struct bufdesc { + ushort cbd_sc; /* Control and status info */ + ushort cbd_datlen; /* Data length */ + uintcbd_bufaddr;/* Buffer address */ +} c

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread David Miller
Would you be offended if I tell you that this is a horrible patch submission? Your introductory email indicates 16 patches, yet the series indicates there were 12, and that intro email is only posted to the linuxppc-dev list for people to read. Nobody on netdev nor other interested parties that

Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Grant Likely
On Wed, May 6, 2009 at 2:15 PM, Wolfgang Denk wrote: > From: John Rigby > > Add support for MPC512x to fs_enet driver > >    drivers/net/fs_enet/* >        Enable fs_enet driver to work 5121 FEC >        Enable it with CONFIG_FS_ENET_MPC5121_FEC > > Signed-off-by: John Rigby > Signed-off-by: Pio

[PATCH 02/12] fs_enet: Add MPC5121 FEC support.

2009-05-06 Thread Wolfgang Denk
From: John Rigby Add support for MPC512x to fs_enet driver drivers/net/fs_enet/* Enable fs_enet driver to work 5121 FEC Enable it with CONFIG_FS_ENET_MPC5121_FEC Signed-off-by: John Rigby Signed-off-by: Piotr Ziecik Signed-off-by: Wolfgang Denk Cc: Cc: Grant Likely Cc: