linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash
@ 2012-04-17  9:15 Chang-Ming.Huang
  2012-04-17 18:09 ` Tabi Timur-B04825
  0 siblings, 1 reply; 5+ messages in thread
From: Chang-Ming.Huang @ 2012-04-17  9:15 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Jerry Huang

From: Jerry Huang <Chang-Ming.Huang@freescale.com>

The compatilbe 'simple-bus' is removed from the latest DTS for NAND and
NOR flash partition, so we must add the new compatilbe support for p1022ds,
otherwise, the kernel can't parse the partition of NOR and NAND flash.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
---
changes for v2:
	correct the style

 arch/powerpc/platforms/85xx/p1022_ds.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c b/arch/powerpc/platforms/85xx/p1022_ds.c
index e74b7cd..0db3a7e 100644
--- a/arch/powerpc/platforms/85xx/p1022_ds.c
+++ b/arch/powerpc/platforms/85xx/p1022_ds.c
@@ -463,6 +463,7 @@ static void __init p1022_ds_setup_arch(void)
 static struct of_device_id __initdata p1022_ds_ids[] = {
 	/* So that the DMA channel nodes can be probed individually: */
 	{ .compatible = "fsl,eloplus-dma", },
+	{ .compatible = "fsl,p1022-elbc", },
 	{},
 };
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash
  2012-04-17  9:15 [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash Chang-Ming.Huang
@ 2012-04-17 18:09 ` Tabi Timur-B04825
  2012-04-18  7:46   ` Huang Changming-R66093
  0 siblings, 1 reply; 5+ messages in thread
From: Tabi Timur-B04825 @ 2012-04-17 18:09 UTC (permalink / raw)
  To: Huang Changming-R66093; +Cc: linuxppc-dev@lists.ozlabs.org

On Tue, Apr 17, 2012 at 4:15 AM,  <Chang-Ming.Huang@freescale.com> wrote:

> diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c b/arch/powerpc/platfo=
rms/85xx/p1022_ds.c
> index e74b7cd..0db3a7e 100644
> --- a/arch/powerpc/platforms/85xx/p1022_ds.c
> +++ b/arch/powerpc/platforms/85xx/p1022_ds.c
> @@ -463,6 +463,7 @@ static void __init p1022_ds_setup_arch(void)
> =A0static struct of_device_id __initdata p1022_ds_ids[] =3D {
> =A0 =A0 =A0 =A0/* So that the DMA channel nodes can be probed individuall=
y: */
> =A0 =A0 =A0 =A0{ .compatible =3D "fsl,eloplus-dma", },
> + =A0 =A0 =A0 { .compatible =3D "fsl,p1022-elbc", },
> =A0 =A0 =A0 =A0{},
> =A0};


Have you actually tested this with an upstream kernel?  p1022_ds_ids[]
is broken upstream, so adding a new line won't work.

Take a look at http://patchwork.ozlabs.org/patch/128533/

--=20
Timur Tabi
Linux kernel developer at Freescale=

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash
  2012-04-17 18:09 ` Tabi Timur-B04825
@ 2012-04-18  7:46   ` Huang Changming-R66093
  2012-04-18  8:02     ` Huang Changming-R66093
  0 siblings, 1 reply; 5+ messages in thread
From: Huang Changming-R66093 @ 2012-04-18  7:46 UTC (permalink / raw)
  To: Tabi Timur-B04825; +Cc: linuxppc-dev@lists.ozlabs.org

Yes, I tested with the latest Linux kernel, with my patch, the NOR and NAND=
 MTD can work well.

Best Regards
Jerry Huang


> -----Original Message-----
> From: Tabi Timur-B04825
> Sent: Wednesday, April 18, 2012 2:10 AM
> To: Huang Changming-R66093
> Cc: linuxppc-dev@lists.ozlabs.org; Kumar Gala
> Subject: Re: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds
> flash
>=20
> On Tue, Apr 17, 2012 at 4:15 AM,  <Chang-Ming.Huang@freescale.com> wrote:
>=20
> > diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c
> > b/arch/powerpc/platforms/85xx/p1022_ds.c
> > index e74b7cd..0db3a7e 100644
> > --- a/arch/powerpc/platforms/85xx/p1022_ds.c
> > +++ b/arch/powerpc/platforms/85xx/p1022_ds.c
> > @@ -463,6 +463,7 @@ static void __init p1022_ds_setup_arch(void)
> > =A0static struct of_device_id __initdata p1022_ds_ids[] =3D {
> > =A0 =A0 =A0 =A0/* So that the DMA channel nodes can be probed individua=
lly: */
> > =A0 =A0 =A0 =A0{ .compatible =3D "fsl,eloplus-dma", },
> > + =A0 =A0 =A0 { .compatible =3D "fsl,p1022-elbc", },
> > =A0 =A0 =A0 =A0{},
> > =A0};
>=20
>=20
> Have you actually tested this with an upstream kernel?  p1022_ds_ids[] is
> broken upstream, so adding a new line won't work.
>=20
> Take a look at http://patchwork.ozlabs.org/patch/128533/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash
  2012-04-18  7:46   ` Huang Changming-R66093
@ 2012-04-18  8:02     ` Huang Changming-R66093
  2012-04-18 22:01       ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Huang Changming-R66093 @ 2012-04-18  8:02 UTC (permalink / raw)
  To: Huang Changming-R66093, Tabi Timur-B04825; +Cc: linuxppc-dev@lists.ozlabs.org

But, I observed the Call Trace, but the partition can be parsed correctly.
Maybe your patch can fix this Call Trace.

Best Regards
Jerry Huang


> -----Original Message-----
> From: linuxppc-dev-bounces+r66093=3Dfreescale.com@lists.ozlabs.org
> [mailto:linuxppc-dev-bounces+r66093=3Dfreescale.com@lists.ozlabs.org] On
> Behalf Of Huang Changming-R66093
> Sent: Wednesday, April 18, 2012 3:47 PM
> To: Tabi Timur-B04825
> Cc: linuxppc-dev@lists.ozlabs.org
> Subject: RE: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds
> flash
>=20
> Yes, I tested with the latest Linux kernel, with my patch, the NOR and
> NAND MTD can work well.
>=20
> Best Regards
> Jerry Huang
>=20
>=20
> > -----Original Message-----
> > From: Tabi Timur-B04825
> > Sent: Wednesday, April 18, 2012 2:10 AM
> > To: Huang Changming-R66093
> > Cc: linuxppc-dev@lists.ozlabs.org; Kumar Gala
> > Subject: Re: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for
> > p1022ds flash
> >
> > On Tue, Apr 17, 2012 at 4:15 AM,  <Chang-Ming.Huang@freescale.com>
> wrote:
> >
> > > diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c
> > > b/arch/powerpc/platforms/85xx/p1022_ds.c
> > > index e74b7cd..0db3a7e 100644
> > > --- a/arch/powerpc/platforms/85xx/p1022_ds.c
> > > +++ b/arch/powerpc/platforms/85xx/p1022_ds.c
> > > @@ -463,6 +463,7 @@ static void __init p1022_ds_setup_arch(void)
> > > =A0static struct of_device_id __initdata p1022_ds_ids[] =3D {
> > > =A0 =A0 =A0 =A0/* So that the DMA channel nodes can be probed individ=
ually:
> > > */
> > > =A0 =A0 =A0 =A0{ .compatible =3D "fsl,eloplus-dma", },
> > > + =A0 =A0 =A0 { .compatible =3D "fsl,p1022-elbc", },
> > > =A0 =A0 =A0 =A0{},
> > > =A0};
> >
> >
> > Have you actually tested this with an upstream kernel?  p1022_ds_ids[]
> > is broken upstream, so adding a new line won't work.
> >
> > Take a look at http://patchwork.ozlabs.org/patch/128533/
>=20
>=20
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash
  2012-04-18  8:02     ` Huang Changming-R66093
@ 2012-04-18 22:01       ` Timur Tabi
  0 siblings, 0 replies; 5+ messages in thread
From: Timur Tabi @ 2012-04-18 22:01 UTC (permalink / raw)
  To: Huang Changming-R66093; +Cc: linuxppc-dev@lists.ozlabs.org

Huang Changming-R66093 wrote:
> But, I observed the Call Trace, but the partition can be parsed correctly.
> Maybe your patch can fix this Call Trace.

Can you post the call trace?

I think the reason this patch works is because the localbus node is not
already probed by mpc85xx_common_publish_devices().
mpc85xx_common_publish_devices() has this line in it:

	{ .name = "localbus", },

But this does not work any more, because all of our 85xx localbus nodes
are now called "localbus@ffe05000".

I'm beginning to hate mpc85xx_common_publish_devices() now.  Not only
because it's broken for the P1022DS, but also because it's not
set-in-stone like everyone thought.

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-18 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17  9:15 [PATCH v2 1/2] powerpc/mpc85xx: support the MTD for p1022ds flash Chang-Ming.Huang
2012-04-17 18:09 ` Tabi Timur-B04825
2012-04-18  7:46   ` Huang Changming-R66093
2012-04-18  8:02     ` Huang Changming-R66093
2012-04-18 22:01       ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).