Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Fri, Apr 18, 2014 at 04:28:17PM -0500, Rob Herring wrote: > >> > Apart from the current code permitting recreating a 15+ year old > >> > firmware bug into completely new platform ports? > >> > >> I would prefer to see a "WARN_ON(!IS_ENABLED(CONFIG_PPC32));" added here. > > > > In addition to, or

Re: [PATCH] powerpc/fsl: Updated device trees for platforms with corenet version 2

2014-04-18 Thread Scott Wood
On Fri, 2014-04-18 at 18:21 +0300, Diana Craciun wrote: > From: Diana Craciun > > Updated the device trees according to the corenet-cf > binding definition. > > Signed-off-by: Diana Craciun > --- > arch/powerpc/boot/dts/b4860emu.dts | 2 +- > arch/powerpc/boot/dts/fsl/b4420si-post.dts

Re: [PATCH v2] powerpc/fsl: Added binding for Freescale CoreNet coherency fabric (CCF)

2014-04-18 Thread Scott Wood
On Fri, 2014-04-18 at 18:11 +0300, Diana Craciun wrote: > From: Diana Craciun > > The CoreNet coherency fabric is a fabric-oriented, conectivity > infrastructure that enables the implementation of coherent, multicore > systems. The CCF acts as a central interconnect for cores, > platform-level ca

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Rob Herring
On Fri, Apr 18, 2014 at 3:13 PM, Leif Lindholm wrote: > On Fri, Apr 18, 2014 at 10:37:58AM -0500, Rob Herring wrote: >> >> But why do you need this? >> > >> > Apart from the current code permitting recreating a 15+ year old >> > firmware bug into completely new platform ports? >> >> I would prefer

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Fri, Apr 18, 2014 at 10:37:58AM -0500, Rob Herring wrote: > >> But why do you need this? > > > > Apart from the current code permitting recreating a 15+ year old > > firmware bug into completely new platform ports? > > I would prefer to see a "WARN_ON(!IS_ENABLED(CONFIG_PPC32));" added here. I

[PATCH] powerpc/mpc85xx: Remove P1023 RDS support

2014-04-18 Thread Lijun Pan
P1023RDS is no longer supported by Freescale while P1023RDB is still supported. Signed-off-by: Lijun Pan --- arch/powerpc/boot/dts/p1023rds.dts | 219 - arch/powerpc/configs/mpc85xx_defconfig | 1 - arch/powerpc/configs/mpc85xx_smp_defconfig

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Rob Herring
On Fri, Apr 18, 2014 at 7:48 AM, Leif Lindholm wrote: > On Thu, Apr 17, 2014 at 07:43:13PM -0500, Rob Herring wrote: >> On Thu, Apr 17, 2014 at 12:41 PM, Leif Lindholm >> wrote: >> > drivers/of/fdt.c contains a workaround for a missing memory type >> > entry on longtrail firmware. Make that quirk

[PATCH] powerpc/fsl: Updated device trees for platforms with corenet version 2

2014-04-18 Thread Diana Craciun
From: Diana Craciun Updated the device trees according to the corenet-cf binding definition. Signed-off-by: Diana Craciun --- arch/powerpc/boot/dts/b4860emu.dts | 2 +- arch/powerpc/boot/dts/fsl/b4420si-post.dtsi | 4 arch/powerpc/boot/dts/fsl/b4860si-post.dtsi | 4 arch/pow

[PATCH v2] powerpc/fsl: Added binding for Freescale CoreNet coherency fabric (CCF)

2014-04-18 Thread Diana Craciun
From: Diana Craciun The CoreNet coherency fabric is a fabric-oriented, conectivity infrastructure that enables the implementation of coherent, multicore systems. The CCF acts as a central interconnect for cores, platform-level caches, memory subsystem, peripheral devices and I/O host bridges in t

Re: [PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-18 Thread Leif Lindholm
Hi Geert, On Fri, Apr 18, 2014 at 10:04:15AM +0200, Geert Uytterhoeven wrote: > On Thu, Apr 17, 2014 at 7:42 PM, Leif Lindholm > wrote: > > In order to deal with an firmware bug on a specific ppc32 platform > > (longtrail), early_init_dt_scan_memory() looks for a node called > > memory@0 on all

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Thu, Apr 17, 2014 at 07:43:13PM -0500, Rob Herring wrote: > On Thu, Apr 17, 2014 at 12:41 PM, Leif Lindholm > wrote: > > drivers/of/fdt.c contains a workaround for a missing memory type > > entry on longtrail firmware. Make that quirk PPC32 only, and while > > at it - fix up the .dts files in t

[PATCH 5/6] powerpc/corenet: Add DPAA FMan support to the SoC device tree(s)

2014-04-18 Thread Shruti Kanetkar
FMan 1 Gb/s MACs (dTSEC and mEMAC) have support for SGMII PHYs. Add support for the internal SerDes TBI PHYs Based on prior work by Andy Fleming Signed-off-by: Shruti Kanetkar --- arch/powerpc/boot/dts/fsl/b4860si-post.dtsi | 28 + arch/powerpc/boot/dts/fsl/b4si-post.dtsi| 51 +++

[PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-18 Thread Leif Lindholm
In order to deal with an firmware bug on a specific ppc32 platform (longtrail), early_init_dt_scan_memory() looks for a node called memory@0 on all platforms. Restrict this quirk to ppc32 kernels only. Signed-off-by: Leif Lindholm Cc: linuxppc-dev@lists.ozlabs.org Cc: Grant Likely Cc: Mark Rutla

[PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
drivers/of/fdt.c contains a workaround for a missing memory type entry on longtrail firmware. Make that quirk PPC32 only, and while at it - fix up the .dts files in the tree currently working only because of that quirk. Cc: devicet...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker

[PATCH 6/6] powerpc/corenet: Add MDIO bus muxing support to the board device tree(s)

2014-04-18 Thread Shruti Kanetkar
Based on prior work by Andy Fleming Signed-off-by: Shruti Kanetkar --- arch/powerpc/boot/dts/b4860qds.dts | 56 +++ arch/powerpc/boot/dts/b4qds.dtsi | 45 ++ arch/powerpc/boot/dts/p1023rdb.dts | 19 +++ arch/powerpc/boot/dts/p2041rdb.dts | 87 +++ arch/powerpc/boot/dts/p30

[PATCH 2/6] powerpc/corenet: Enable muxing MDIO buses via FPGA

2014-04-18 Thread Shruti Kanetkar
Signed-off-by: Andy Fleming Signed-off-by: Shaohui Xie Signed-off-by: Shruti Kanetkar --- arch/powerpc/configs/corenet32_smp_defconfig | 1 + arch/powerpc/configs/corenet64_smp_defconfig | 1 + arch/powerpc/platforms/85xx/corenet_generic.c | 3 +++ 3 files changed, 5 insertions(+) diff --git

[PATCH 3/6] net/fsl_pq_mdio: Document supported compatibles

2014-04-18 Thread Shruti Kanetkar
The device tree binding(s) document has fallen out of sync with the driver code. Update the list of supported devices to reflect current driver capabilities Signed-off-by: Shruti Kanetkar --- Documentation/devicetree/bindings/net/fsl-tsec-phy.txt | 11 ++- 1 file changed, 10 insertions(+

[PATCH 1/6] powerpc/corenet: Enable muxing MDIO buses via GPIO

2014-04-18 Thread Shruti Kanetkar
From: Andy Fleming Signed-off-by: Andy Fleming Signed-off-by: Shaohui Xie Signed-off-by: Shruti Kanetkar --- arch/powerpc/configs/corenet32_smp_defconfig | 2 ++ arch/powerpc/configs/corenet64_smp_defconfig | 2 ++ arch/powerpc/platforms/85xx/corenet_generic.c | 3 +++ 3 files changed, 7 in

Re: [PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-18 Thread Geert Uytterhoeven
Hei Leif, On Fri, Apr 18, 2014 at 2:59 PM, Leif Lindholm wrote: > On Fri, Apr 18, 2014 at 10:04:15AM +0200, Geert Uytterhoeven wrote: >> On Thu, Apr 17, 2014 at 7:42 PM, Leif Lindholm >> wrote: >> > In order to deal with an firmware bug on a specific ppc32 platform >> > (longtrail), early_init_

Re: [PATCH RFC v11 5/6] dma: mpc512x: add device tree binding document

2014-04-18 Thread Alexander Popov
Thanks for your reply, Gerhard 2014-04-17 0:44 GMT+04:00 Gerhard Sittig : > On Tue, 2014-04-15 at 14:54 +0400, Alexander Popov wrote: >> >> Introduce a device tree binding document for the MPC512x DMA controller >> >> Signed-off-by: Gerhard Sittig >> Signed-off-by: Alexander Popov > > I'm not ce

[PATCH] powerpc/diu: adjust DIU initialization entry

2014-04-18 Thread Dongsheng Wang
From: Wang Dongsheng Move fsl_diu_init into diu probe function, because it should be initialized when system get diu device tree node, not always do initialization. Signed-off-by: Wang Dongsheng diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index e8758b9..75ab20e 100644

[PATCH v4 8/8] DMA: Freescale: add suspend resume functions for DMA driver

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang This patch adds suspend resume functions for Freescale DMA driver. .prepare callback is used to stop further descriptors from being added into the pending queue, and also issue pending queues into execution if there is any. .suspend callback makes sure all the pending jobs are

[PATCH v4 7/8] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave. This patch changes all insta

[PATCH v4 6/8] DMA: Freescale: change descriptor release process for supporting async_tx

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race condition when dma engine is uesd b

[PATCH v4 3/8] DMA: Freescale: remove attribute DMA_INTERRUPT of dmaengine

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang Delete attribute DMA_INTERRUPT because fsldma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Signed-off-by: Hongbo Zhang Signed-off-by: Qiang Liu --- drivers/dma/fsldma.c | 31 --- 1

[PATCH v4 5/8] DMA: Freescale: move functions to avoid forward declarations

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Hongbo Zhang Signed-off-by: Qiang Liu --- drivers/dma/fsldma.c | 190 +-

[PATCH v4 4/8] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang There are several places where descriptors are freed using identical code. This patch puts this code into a function to reduce code duplication. Signed-off-by: Hongbo Zhang Signed-off-by: Qiang Liu --- drivers/dma/fsldma.c | 27 +-- 1 file changed,

[PATCH v4 2/8] DMA: Freescale: unify register access methods

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang Methods of accessing DMA controller registers are inconsistent, some registers are accessed by DMA_IN/OUT directly, while others are accessed by functions get/set_* which are wrappers of DMA_IN/OUT, and even for the BCR register, it is read by get_bcr but written by DMA_OUT. Th

[PATCH v4 1/8] DMA: Freescale: remove the unnecessary FSL_DMA_LD_DEBUG

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang Some codes are calling chan_dbg with FSL_DMA_LD_DEBUG surrounded, it is really unnecessary to use such a macro because chan_dbg is a wrapper of dev_dbg, we do have corresponding DEBUG macro to switch on/off dev_dbg, and most of the other codes are also calling chan_dbg directly

[PATCH v4 0/8] DMA: Freescale: driver cleanups and enhancements

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang Hi Vinod Koul, Please have a look at the v4 patch set. v3 -> v4 changes: - Fixed a typo in [2/8] commit message. - There was a potential double call of list_del() when apply [4/8] only, although this defect is removed again in later [6/8]. This version eliminates this

Re: [PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-18 Thread Geert Uytterhoeven
Hi Leif, On Thu, Apr 17, 2014 at 7:42 PM, Leif Lindholm wrote: > In order to deal with an firmware bug on a specific ppc32 platform > (longtrail), early_init_dt_scan_memory() looks for a node called > memory@0 on all platforms. Restrict this quirk to ppc32 kernels only. This breaks backwards com