[PATCH 05/11] net: calxedaxgmac: update ring buffer tx_head after barriers

2013-08-26 Thread Rob Herring
From: Rob Herring Ensure that the descriptor writes are visible before the ring buffer head is updated. Since writel is a barrier, we can simply update the head after the writel. Reported-by: Lennert Buytenhek Signed-off-by: Rob Herring --- drivers/net/ethernet/calxeda/xgmac.c | 3 ++- 1

[PATCH 04/11] net: calxedaxgmac: fix possible skb free before tx complete

2013-08-26 Thread Rob Herring
From: Rob Herring The TX completion code may have freed an skb before the entire sg list was transmitted. The DMA unmap calls for the fragments could also get skipped. Now set the skb pointer on every entry in the ring, not just the head of the sg list. We then use the FS (first segment) bit in

[PATCH 03/11] net: calxedaxgmac: fix race between xgmac_tx_complete and xgmac_tx_err

2013-08-26 Thread Rob Herring
From: Rob Herring It is possible for the xgmac_tx_complete to run concurrently with xgmac_tx_err since there are no locks. Fix this by moving the tx error handling to a workqueue so we can disable napi while we reset the transmitter. Reported-by: Andreas Herrmann Signed-off-by: Rob Herring

[PATCH 11/11] net: calxedaxgmac: fix xgmac_xmit DMA mapping error handling

2013-08-26 Thread Rob Herring
From: Rob Herring On a DMA mapping error in xgmac_xmit, we should simply free the skb and return NETDEV_TX_OK rather than -EIO. In the case of errors in mapping frags, we need to undo everything that has been setup. Reported-by: Andreas Herrmann Signed-off-by: Rob Herring --- drivers/net

[PATCH 02/11] net: calxedaxgmac: read correct field in xgmac_desc_get_buf_len

2013-08-26 Thread Rob Herring
From: Rob Herring xgmac_desc_get_buf_len appears to have a copy/paste error. flags is the wrong field to read. We should be reading buf_size field. cpu_to_le32 should also be le32_to_cpu. This never really mattered as this function is only used for DMA mapping calls which happen to be nops with

Re: [PATCH] of: Define of_irq_find_parent dummy for !defined(CONFIG_OF_IRQ)

2013-08-27 Thread Rob Herring
On Tue, Aug 27, 2013 at 2:57 AM, Andreas Larsson wrote: > This changes the dummy version of of_irq_find_parent to be defined when > !defined(CONFIG_OF_IRQ) instead of when !defined(CONFIG_OF). Without > this of_irq_find_parent is undefined on SPARC that defines CONFIG_OF but > not CONFIG_OF_IRQ.

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-27 Thread Rob Herring
On Tue, Aug 27, 2013 at 9:08 AM, Lee Jones wrote: > On Tue, 27 Aug 2013, Mark Rutland wrote: > >> On Tue, Aug 27, 2013 at 09:06:35AM +0100, Lee Jones wrote: >> > On Fri, 23 Aug 2013, Mark Rutland wrote: >> > >> > > On Fri, Aug 23, 2013 at 08:56:07AM +0100, Lee Jones wrote: >> > > > I had a short c

[PATCH] ARM: xen: only set pm function ptrs for Xen guests

2013-08-28 Thread Rob Herring
From: Rob Herring xen_pm_init was unconditionally setting pm_power_off and arm_pm_restart function pointers. This breaks multi-platform kernels. Move this initialization into xen_guest_init, so it is conditional on running as a Xen guest. Cc: Stefano Stabellini Signed-off-by: Rob Herring

Re: [Xen-devel] [PATCH] ARM: xen: only set pm function ptrs for Xen guests

2013-08-28 Thread Rob Herring
On Wed, Aug 28, 2013 at 11:32 AM, Julien Grall wrote: > On 08/28/2013 05:19 PM, Rob Herring wrote: >> From: Rob Herring >> >> xen_pm_init was unconditionally setting pm_power_off and arm_pm_restart >> function pointers. This breaks multi-platform kernels. Move

[PATCH v2] ARM: xen: only set pm function ptrs for Xen guests

2013-08-28 Thread Rob Herring
From: Rob Herring xen_pm_init was unconditionally setting pm_power_off and arm_pm_restart function pointers. This breaks multi-platform kernels. Make this conditional on running as a Xen guest and make it a late_initcall to ensure it is setup after platform code for Dom0. Cc: Stefano Stabellini

[PATCH v3] ARM: xen: only set pm function ptrs for Xen guests

2013-08-29 Thread Rob Herring
From: Rob Herring xen_pm_init was unconditionally setting pm_power_off and arm_pm_restart function pointers. This breaks multi-platform kernels. Make this conditional on running as a Xen guest and make it a late_initcall to ensure it is setup after platform code for Dom0. Cc: Stefano Stabellini

Re: [RFC PATCH 0/6] DRIVERS: IRQCHIP: Add support for crossbar IP

2013-10-01 Thread Rob Herring
On 10/01/2013 06:13 AM, Sricharan R wrote: > Hi, > > On Monday 30 September 2013 08:39 PM, Rob Herring wrote: >> On 09/30/2013 08:59 AM, Sricharan R wrote: >>> Some socs have a large number of interrupts requests to service >>> the needs of its many perip

Re: [RFC PATCH 0/6] DRIVERS: IRQCHIP: Add support for crossbar IP

2013-10-01 Thread Rob Herring
On 10/01/2013 08:57 AM, Santosh Shilimkar wrote: > On Tuesday 01 October 2013 09:48 AM, Rob Herring wrote: >> On 10/01/2013 06:13 AM, Sricharan R wrote: >>> Hi, >>> >>> On Monday 30 September 2013 08:39 PM, Rob Herring wrote: >>>> On 09/30/2013 08:

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Rob Herring
On Wed, Oct 2, 2013 at 12:42 PM, Stephen Boyd wrote: > On 10/02/13 10:27, Santosh Shilimkar wrote: >> On Wednesday 02 October 2013 01:22 PM, Stephen Boyd wrote: >>> On 10/02/13 10:14, Santosh Shilimkar wrote: On Wednesday 02 October 2013 01:09 PM, Will Deacon wrote: > On Wed, Oct 02, 2013

Re: [PATCH v2 1/3] Documentation: arm: add UEFI support documentation

2013-10-03 Thread Rob Herring
Adding devicetree list since you are defining bindings... On 10/03/2013 06:24 AM, Leif Lindholm wrote: > This patch provides documentation of the [U]EFI runtime services and > configuration features. > > Cc: linux-...@vger.kernel.org > Signed-off-by: Leif Lindholm > Acked-by: Rob Landley > ---

Re: [PATCH 00/21] of: prom.h clean-up and removal

2013-10-03 Thread Rob Herring
On Thu, Oct 3, 2013 at 4:33 AM, Vineet Gupta wrote: > [Trimmed CC list a bit] > > On 09/27/2013 10:26 AM, Vineet Gupta wrote: >> On 09/27/2013 12:21 AM, Rob Herring wrote: >>> From: Rob Herring >>> >>> This is the second series of clean-up for architec

Re: [PATCH v6 15/19] swiotlb-xen: call dma_capable only if dev->dma_mask is allocated

2013-10-03 Thread Rob Herring
On Wed, Oct 2, 2013 at 12:22 PM, Konrad Rzeszutek Wilk wrote: > On Wed, Oct 02, 2013 at 06:13:35PM +0100, Stefano Stabellini wrote: >> The real issue is that some devices (xgmac, I am looking at you), don't >> set the dma_mask, even though they are perfectly capable of doing dma. > > So this looks

Re: [PATCH|RFC] of: let of_match_device() always return best match

2013-10-03 Thread Rob Herring
c22cebf5c311a6f1895fcca9f78efd0478 Author: Linus Torvalds Date: Tue Jul 10 12:49:32 2012 -0700 Revert "of: match by compatible property first" This reverts commit 107a84e61cdd3406c842a0e4be7efffd3a05dba6. Meelis Roos reports a regression since 3.5-rc5 that stops Sun Fi

Re: [PATCH|RFC] of: let of_match_device() always return best match

2013-10-03 Thread Rob Herring
On 10/03/2013 04:51 PM, Marc Kleine-Budde wrote: > On 10/03/2013 10:37 PM, Rob Herring wrote: >> On 10/03/2013 01:51 PM, Marc Kleine-Budde wrote: >>> The function of_match_device() should tell if a struct device >>> matches an of_device_id list and return the speci

Re: [PATCH] of: match the compatible in the order set by the dts file

2013-07-09 Thread Rob Herring
On Tue, Jul 9, 2013 at 3:10 AM, Huang Shijie wrote: > 于 2013年07月09日 15:51, Sascha Hauer 写道: > >> On Tue, Jul 09, 2013 at 03:46:34PM +0800, Huang Shijie wrote: >>> >>> 于 2013年07月09日 15:05, Sascha Hauer 写道: Why don't you set the matching order in the driver the way you want it to be,

Re: [V2 2/2] powerpc/512x: add LocalPlus Bus FIFO device driver

2013-07-10 Thread Rob Herring
On 07/10/2013 08:46 AM, Gerhard Sittig wrote: > On Wed, Jul 10, 2013 at 14:21 +0400, Alexander Popov wrote: >> >> This is SCLPC device driver for the Freescale MPC512x. >> It is needed for Direct Memory Access to the devices on LocalPlus Bus. >> >> Signed-off-by: Alexander Popov >> --- >> arch/po

Re: [PATCH] gps6507x.txt: Remove executable bits

2013-07-12 Thread Rob Herring
On 07/12/2013 12:31 PM, Joe Perches wrote: > Documentation shouldn't be executable. > > Signed-off-by: Joe Perches Acked-by: Rob Herring > --- > diff --git a/Documentation/devicetree/bindings/mfd/tps6507x.txt > b/Documentation/devicetree/bindings/mfd/tps6507x.txt >

Re: [PATCH] memory: add a basic OF-based memory driver

2013-09-16 Thread Rob Herring
On Sun, Sep 15, 2013 at 7:43 AM, Grant Likely wrote: > On Fri, 13 Sep 2013 08:49:06 -0700, Olof Johansson wrote: >> On Fri, Sep 13, 2013 at 7:00 AM, Rob Herring wrote: >> > On Thu, Sep 12, 2013 at 8:31 PM, Emilio López wrote: [snip] >> > Better, but this is st

Re: [PATCH 3/9] irqdomain: Introduce __irq_create_of_mapping()

2013-09-16 Thread Rob Herring
On 09/16/2013 03:32 AM, Thierry Reding wrote: > This is a version of irq_create_of_mapping() that propagates the precise > error code instead of returning 0 for all errors. It will be used in > subsequent patches to allow further propagation of error codes. > > To avoid code duplication, implement

Re: [PATCH 5/9] of/irq: Introduce __of_irq_to_resource()

2013-09-16 Thread Rob Herring
On 09/16/2013 03:32 AM, Thierry Reding wrote: > This is a version of of_irq_to_resource() that propagates the precise > error code instead of returning 0 for all errors. It will be used in > subsequent patches to allow further propagation of error codes. > > To avoid code duplication, implement of

Re: [PATCH 4/9] of/irq: Introduce of_irq_get()

2013-09-16 Thread Rob Herring
On 09/16/2013 03:32 AM, Thierry Reding wrote: > This is a version of irq_of_parse_and_map() that propagates the precise > error code instead of returning 0 for all errors. It will be used in > subsequent patches to allow further propagation of error codes. > > To avoid code duplication, implement

[PATCH 15/28] mips: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert mips to use new early_init_dt_scan function. Remove early_init_dt_scan_memory_arch Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org --- arch/mips/include/asm/prom.h | 3 --- arch/mips/kernel/prom.c | 39

[PATCH 19/28] arm: set initrd_start/initrd_end for fdt scan

2013-09-16 Thread Rob Herring
From: Rob Herring In order to unify the initrd scanning for DT across architectures, make arm set initrd_start and initrd_end instead of the physical addresses. This is aligned with all other architectures. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org

[PATCH 20/28] arm64: set initrd_start/initrd_end for fdt scan

2013-09-16 Thread Rob Herring
From: Rob Herring In order to unify the initrd scanning for DT across architectures, make arm64 use initrd_start and initrd_end instead of the physical addresses. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/mm/init.c

[PATCH 28/28] mips: use common of_flat_dt_get_machine_name

2013-09-16 Thread Rob Herring
From: Rob Herring Convert mips to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org --- arch/mips/kernel/prom.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/mips/kernel

[PATCH 25/28] arm: use common of_flat_dt_match_machine

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arm to use the common of_flat_dt_match_machine function. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/devtree.c | 42 -- 1 file changed, 20 insertions(+), 22

[PATCH 26/28] arm64: use common of_flat_dt_get_machine_name

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arm64 to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/setup.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions

[PATCH 21/28] of: remove early_init_dt_setup_initrd_arch

2013-09-16 Thread Rob Herring
From: Rob Herring All arches do essentially the same thing now for early_init_dt_setup_initrd_arch, so it can now be removed. Signed-off-by: Rob Herring Cc: Vineet Gupta Cc: Russell King Cc: Mark Salter Cc: Aurelien Jacquiot Cc: James Hogan Cc: Michal Simek Cc: Ralf Baechle Cc: Jonas

[PATCH 24/28] arc: use common of_flat_dt_match_machine

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arc to use the common of_flat_dt_match_machine function. Signed-off-by: Rob Herring Cc: Vineet Gupta --- arch/arc/kernel/devtree.c | 65 +-- 1 file changed, 18 insertions(+), 47 deletions(-) diff --git a/arch/arc/kernel

[PATCH 23/28] of: introduce common FDT machine related functions

2013-09-16 Thread Rob Herring
From: Rob Herring Introduce common of_flat_dt_match_machine and of_flat_dt_get_machine_name functions to unify architectures' handling of machine level model and compatible properties. Several architectures match the root compatible string with an arch specific list of machine descri

[PATCH 18/28] of: create default early_init_dt_add_memory_arch

2013-09-16 Thread Rob Herring
From: Rob Herring Create a weak version of early_init_dt_add_memory_arch which uses memblock or is an empty function when memblock is not enabled. This will unify all architectures except ones with custom memory bank structs. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon Cc

[PATCH 22/28] openrisc: remove unnecessary prom.c includes

2013-09-16 Thread Rob Herring
From: Rob Herring It appears openrisc prom.c was just copied from another arch with a bunch of unnecessary includes. Remove all the unecessary ones. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/prom.c | 22 -- 1 file

[PATCH 16/28] openrisc: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert openrisc to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/prom.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/openrisc/kernel/prom.c b

[PATCH 14/28] microblaze: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert microblaze to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Michal Simek Cc: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/kernel/prom.c | 17 +++-- arch/microblaze/kernel/setup.c | 2 +- 2 files changed, 4 insertions

[PATCH 05/28] openrisc: use unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. This moves the copy later in the boot, but there do not appear to be any references to strings in the FDT before the copy. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li

[PATCH 17/28] xtensa: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert xtensa to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/kernel/setup.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a

[PATCH 08/28] metag: use unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: James Hogan --- arch/metag/kernel/devtree.c | 16 arch/metag/kernel/setup.c | 4 +--- 2 files changed, 1 insertion(+), 19 deletions

[PATCH 12/28] arm64: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arm64 to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/setup.c | 31 +++ 1 file changed, 3 insertions(+), 28 deletions

[PATCH 04/28] arc: use unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: Vineet Gupta --- arch/arc/include/asm/mach_desc.h | 1 - arch/arc/kernel/devtree.c| 15 --- arch/arc/kernel/setup.c | 3

[PATCH 13/28] c6x: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert c6x to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org --- arch/c6x/kernel/devicetree.c | 19 --- arch/c6x/kernel/setup.c | 2 +- 2 files changed, 1

[PATCH 10/28] arc: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arc to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Vineet Gupta --- arch/arc/kernel/devtree.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c index

[PATCH 07/28] xtensa: use unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/kernel/setup.c | 19 +-- 1 file changed, 1 insertion

[PATCH 00/28] Early flattened DT init consolidation

2013-09-16 Thread Rob Herring
From: Rob Herring This is the first of 2 series to do some consolidation of per architecture Device Tree code. We now have 12 architectures with DT support. As new architectures have been added, much of the DT related code for the early flattened DT scanning has been duplicated. Yet little of

[PATCH 11/28] arm: use early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Convert arm to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/devtree.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/arm/kernel

[PATCH 06/28] x86: use unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org --- arch/x86/kernel/devicetree.c | 23 -

[PATCH 09/28] of: Introduce common early_init_dt_scan

2013-09-16 Thread Rob Herring
From: Rob Herring Most architectures scan the all the same items early in the FDT and none are really architecture specific. Create a common early_init_dt_scan to unify the early scan of root, memory, and chosen nodes in the flattened DT. Signed-off-by: Rob Herring Cc: Grant Likely

[PATCH 02/28] openrisc: use boot_command_line instead of private cmd_line

2013-09-16 Thread Rob Herring
From: Rob Herring Save some pointless copying of the kernel command line and just use boot_command_line instead. The DT code already handles CONFIG_CMDLINE, so a separate copy is not needed. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel

[PATCH 03/28] of: create unflatten_and_copy_device_tree

2013-09-16 Thread Rob Herring
From: Rob Herring Several architectures using DT support built-in dtb's in the init section. These platforms need to copy the dtb from init since the strings are referenced after unflattening. Every arch has their own copying routine which do the same thing. Create a common fun

[PATCH 01/28] c6x: use boot_command_line instead of private c6x_command_line

2013-09-16 Thread Rob Herring
From: Rob Herring Save some pointless copying of the kernel command line and just use boot_command_line instead. Also remove default_command_line as it is not referenced anywhere, and the DT code already handles the default command line. Signed-off-by: Rob Herring Cc: Mark Salter Cc

[PATCH 27/28] metag: use common of_flat_dt_match_machine

2013-09-16 Thread Rob Herring
From: Rob Herring Convert metag to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Cc: James Hogan --- arch/metag/kernel/devtree.c | 67 - 1 file changed, 18 insertions(+), 49 deletions(-) diff --git a/arch/metag

Re: [PATCH 18/28] of: create default early_init_dt_add_memory_arch

2013-09-17 Thread Rob Herring
On Tue, Sep 17, 2013 at 3:46 AM, Catalin Marinas wrote: > On 17 Sep 2013, at 00:09, Rob Herring wrote: >> --- a/arch/arm64/kernel/setup.c >> +++ b/arch/arm64/kernel/setup.c >> @@ -147,24 +147,6 @@ static void __init setup_machine_fdt(phys_addr_t >> dt_phys) >

Re: [PATCH 18/28] of: create default early_init_dt_add_memory_arch

2013-09-18 Thread Rob Herring
On Tue, Sep 17, 2013 at 10:33 PM, Grant Likely wrote: > On Mon, 16 Sep 2013 18:09:14 -0500, Rob Herring wrote: >> From: Rob Herring >> >> Create a weak version of early_init_dt_add_memory_arch which uses >> memblock or is an empty function when memblock is not enab

[PATCH] of: clean-up ifdefs in of_irq.h

2013-09-05 Thread Rob Herring
From: Rob Herring Much of of_irq.h is needlessly ifdef'ed. Clean this up and minimize the amount ifdef'ed code. This fixes some build warnings when CONFIG_OF is not enabled (seen on i386 and x86_64): include/linux/of_irq.h:82:7: warning: 'struct device_node' declared in

Re: [PATCH v5 1/5] ARM: add basic Trusted Foundations support

2013-09-05 Thread Rob Herring
On 09/04/2013 10:27 PM, Alexandre Courbot wrote: > Trusted Foundations is a TrustZone-based secure monitor for ARM that > can be invoked using a consistent SMC-based API on all supported > platforms. This patch adds initial basic support for Trusted > Foundations using the ARM firmware API. Curren

[PATCH] openrisc: clean-up prom.h

2013-09-08 Thread Rob Herring
From: Rob Herring Clean-up some copy/paste declarations that are not necessary. All the functions either don't exist or are already declared in other headers. This is needed in preparation of of_irq.h clean-up. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- Th

Re: [PATCH] drivers: of: fix build break if asm/dma-contiguous.h is missing

2013-09-10 Thread Rob Herring
On 09/10/2013 04:13 AM, Marek Szyprowski wrote: > It is not needed to include asm/dma-contiguous.h header to compile > reserved memory initialization code, so remove it to avoid build break > on architectures without CMA support. > > Signed-off-by: Marek Szyprowski Acked-by: Rob

Re: [GIT PULL] Device tree updates for v3.12

2013-09-10 Thread Rob Herring
On 09/10/2013 04:44 PM, Linus Torvalds wrote: > On Tue, Sep 10, 2013 at 2:39 PM, Tim Bird wrote: >> >> Well, I'm not sure how many bits of randomness this will add anyway. >> The way we're using device tree, we get the same values every boot, on >> all instances of the same phone model. So this s

Re: [PATCH] ARM: msm: Move msm devicetrees under a Qualcomm dir

2013-09-12 Thread Rob Herring
On 09/12/2013 01:15 PM, Kumar Gala wrote: > > On Sep 12, 2013, at 1:04 PM, Olof Johansson wrote: > >> On Thu, Sep 12, 2013 at 10:55 AM, Kumar Gala >> wrote: >>> >>> On Sep 12, 2013, at 12:06 PM, Olof Johansson wrote: >>> On Thu, Sep 12, 2013 at 9:53 AM, Kumar Gala wrote: >

Re: [PATCH] memory: add a basic OF-based memory driver

2013-09-13 Thread Rob Herring
On Thu, Sep 12, 2013 at 8:31 PM, Emilio López wrote: > Hi Olof, > > El 12/09/13 21:57, Olof Johansson escribió: > >> On Thu, Sep 12, 2013 at 5:30 PM, Emilio López >> wrote: >>> >>> This driver's only job is to claim and ensure the necessary clock >>> for memory operation on a DT-powered machine r

Re: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-10-07 Thread Rob Herring
On Fri, Jul 26, 2013 at 6:28 AM, Cho KyongHo wrote: > Signed-off-by: Cho KyongHo > --- > .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++ > arch/arm/boot/dts/exynos4.dtsi | 122 > arch/arm/boot/dts/exynos4210.dtsi | 25 ++ > arch

[PATCH v2 00/29] Early flattened DT init consolidation

2013-10-07 Thread Rob Herring
From: Rob Herring This is the first of 2 series to do some consolidation of per architecture Device Tree code. We now have 12 architectures with DT support. As new architectures have been added, much of the DT related code for the early flattened DT scanning has been duplicated. Yet little of

[PATCH v2 10/29] arc: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arc to use new early_init_dt_scan function. Signed-off-by: Rob Herring Acked-by: Vineet Gupta --- arch/arc/kernel/devtree.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c index

[PATCH v2 06/29] x86: use unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org --- arch/x86/kernel/devicetree.c | 23 -

[PATCH v2 29/29] mips: use common of_flat_dt_get_machine_name

2013-10-07 Thread Rob Herring
From: Rob Herring Convert mips to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Acked-by: John Crispin --- arch/mips/kernel/prom.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff

[PATCH v2 21/29] arm64: set initrd_start/initrd_end for fdt scan

2013-10-07 Thread Rob Herring
From: Rob Herring In order to unify the initrd scanning for DT across architectures, make arm64 use initrd_start and initrd_end instead of the physical addresses. Signed-off-by: Rob Herring Acked-by: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/mm

[PATCH v2 24/29] of: introduce common FDT machine related functions

2013-10-07 Thread Rob Herring
From: Rob Herring Introduce common of_flat_dt_match_machine and of_flat_dt_get_machine_name functions to unify architectures' handling of machine level model and compatible properties. Several architectures match the root compatible string with an arch specific list of machine descri

[PATCH v2 13/29] c6x: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert c6x to use new early_init_dt_scan function. Signed-off-by: Rob Herring Acked-by: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org --- arch/c6x/kernel/devicetree.c | 19 --- arch/c6x/kernel/setup.c | 2 +- 2 files changed, 1

[PATCH v2 12/29] arm64: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arm64 to use new early_init_dt_scan function. Signed-off-by: Rob Herring Acked-by: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/setup.c | 31 +++ 1 file changed, 3 insertions(+), 28

[PATCH v2 26/29] arm: use common of_flat_dt_match_machine

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arm to use the common of_flat_dt_match_machine function. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/devtree.c | 42 -- 1 file changed, 20 insertions(+), 22

[PATCH v2 19/29] of: create default early_init_dt_add_memory_arch

2013-10-07 Thread Rob Herring
From: Rob Herring Create a weak version of early_init_dt_add_memory_arch which uses memblock. This will unify all architectures except ones with custom memory bank structs. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon Cc: Michal Simek Cc: Jonas Bonn Acked-by: Grant Likely

[PATCH v2 14/29] metag: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert metag to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: James Hogan --- arch/metag/kernel/devtree.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/metag/kernel/devtree.c b/arch/metag/kernel/devtree.c index 049af56

[PATCH v2 22/29] of: remove early_init_dt_setup_initrd_arch

2013-10-07 Thread Rob Herring
From: Rob Herring All arches do essentially the same thing now for early_init_dt_setup_initrd_arch, so it can now be removed. Signed-off-by: Rob Herring Acked-by: Vineet Gupta Cc: Russell King Cc: Mark Salter Cc: Aurelien Jacquiot Cc: James Hogan Cc: Michal Simek Cc: Ralf Baechle Cc

[PATCH v2 07/29] xtensa: use unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: Chris Zankel Acked-by: Max Filippov Cc: linux-xte...@linux-xtensa.org Acked-by: Grant Likely --- arch/xtensa/kernel/setup.c | 19

[PATCH v2 17/29] openrisc: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert openrisc to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/prom.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/openrisc/kernel/prom.c b

[PATCH v2 03/29] of: create unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Several architectures using DT support built-in dtb's in the init section. These platforms need to copy the dtb from init since the strings are referenced after unflattening. Every arch has their own copying routine which do the same thing. Create a common fun

[PATCH v2 08/29] metag: use unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Cc: James Hogan --- arch/metag/kernel/devtree.c | 16 arch/metag/kernel/setup.c | 4 +--- 2 files changed, 1 insertion(+), 19 deletions

[PATCH v2 01/29] c6x: use boot_command_line instead of private c6x_command_line

2013-10-07 Thread Rob Herring
From: Rob Herring Save some pointless copying of the kernel command line and just use boot_command_line instead. Also remove default_command_line as it is not referenced anywhere, and the DT code already handles the default command line. Signed-off-by: Rob Herring Cc: Mark Salter Cc

[PATCH v2 11/29] arm: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arm to use new early_init_dt_scan function. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/devtree.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/kernel

[PATCH v2 23/29] openrisc: remove unnecessary prom.c includes

2013-10-07 Thread Rob Herring
From: Rob Herring It appears openrisc prom.c was just copied from another arch with a bunch of unnecessary includes. Remove all the unecessary ones. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/prom.c | 22 -- 1 file

[PATCH v2 27/29] arm64: use common of_flat_dt_get_machine_name

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arm64 to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Acked-by: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/setup.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions

[PATCH v2 28/29] metag: use common of_flat_dt_match_machine

2013-10-07 Thread Rob Herring
From: Rob Herring Convert metag to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring [james.hogan: fix missing arch_get_next_mach and const mismatch] Reported-by: Guenter Roeck Signed-off-by: James Hogan --- arch/metag/include/asm/mach/arch.h | 2 +- arch

[PATCH v2 05/29] openrisc: use unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. This moves the copy later in the boot, but there do not appear to be any references to strings in the FDT before the copy. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li

[PATCH v2 18/29] xtensa: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert xtensa to use new early_init_dt_scan function. Signed-off-by: Rob Herring Acked-by: Max Filippov Cc: Chris Zankel Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/kernel/setup.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff

[PATCH v2 20/29] arm: set initrd_start/initrd_end for fdt scan

2013-10-07 Thread Rob Herring
From: Rob Herring In order to unify the initrd scanning for DT across architectures, make arm set initrd_start and initrd_end instead of the physical addresses. This is aligned with all other architectures. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org

[PATCH v2 02/29] openrisc: use boot_command_line instead of private cmd_line

2013-10-07 Thread Rob Herring
From: Rob Herring Save some pointless copying of the kernel command line and just use boot_command_line instead. The DT code already handles CONFIG_CMDLINE, so a separate copy is not needed. Signed-off-by: Rob Herring Cc: Jonas Bonn Cc: li...@lists.openrisc.net Reviewed-by: Grant Likely

[PATCH v2 09/29] of: Introduce common early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Most architectures scan the all the same items early in the FDT and none are really architecture specific. Create a common early_init_dt_scan to unify the early scan of root, memory, and chosen nodes in the flattened DT. Signed-off-by: Rob Herring Acked-by: Grant Likely

[PATCH v2 25/29] arc: use common of_flat_dt_match_machine

2013-10-07 Thread Rob Herring
From: Rob Herring Convert arc to use the common of_flat_dt_match_machine function. Signed-off-by: Rob Herring Acked-by: Vineet Gupta --- arch/arc/kernel/devtree.c | 65 +-- 1 file changed, 18 insertions(+), 47 deletions(-) diff --git a/arch/arc

[PATCH v2 15/29] microblaze: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert microblaze to use new early_init_dt_scan function. Signed-off-by: Rob Herring Tested-by: Michal Simek Cc: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/kernel/prom.c | 17 +++-- arch/microblaze/kernel/setup.c | 2 +- 2 files changed, 4

[PATCH v2 16/29] mips: use early_init_dt_scan

2013-10-07 Thread Rob Herring
From: Rob Herring Convert mips to use new early_init_dt_scan function. Remove early_init_dt_scan_memory_arch Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Acked-by: John Crispin --- arch/mips/include/asm/prom.h | 3 --- arch/mips/kernel/prom.c | 39

[PATCH v2 04/29] arc: use unflatten_and_copy_device_tree

2013-10-07 Thread Rob Herring
From: Rob Herring Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring Acked-by: Vineet Gupta Acked-by: Grant Likely --- arch/arc/include/asm/mach_desc.h | 1 - arch/arc/kernel/devtree.c| 15 --- arch/arc

[PATCH] arm64: add asm-generic parport.h

2013-10-07 Thread Rob Herring
From: Rob Herring Add asm-generic/parport.h to help fix allyesconfig builds. Signed-off-by: Rob Herring Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild

[PATCH] tpm: xen-tpmfront: fix missing declaration of xen_domain

2013-10-07 Thread Rob Herring
From: Rob Herring xen-tpmfront fails to build on arm64 with the following error: drivers/char/tpm/xen-tpmfront.c: In function ‘xen_tpmfront_init’: drivers/char/tpm/xen-tpmfront.c:422:2: error: implicit declaration of function ‘xen_domain’ [-Werror=implicit-function-declaration] Add include of

Re: [PATCH] VEXPRESS: Fix VEXPRESS implicit declarations dependence errors.

2013-10-08 Thread Rob Herring
de_by_phandle’ [-Werror=implicit-function-declaration] > bridge_node = of_find_node_by_phandle( > ^ > drivers/mfd/vexpress-config.c:117:16: warning: assignment makes pointer from > integer without a cast [enabled by default] > bridge_node = of_find_node_by_phandle( > > Si

Re: [PATCH v2 25/29] arc: use common of_flat_dt_match_machine

2013-10-09 Thread Rob Herring
On Tue, Oct 8, 2013 at 12:42 AM, Vineet Gupta wrote: > Hi Rob, > > On 10/07/2013 09:59 PM, Rob Herring wrote: >> From: Rob Herring >> >> Convert arc to use the common of_flat_dt_match_machine function. >> >> Signed-off-by: Rob Herring >> >> A

Re: linux-next: build failure after merge of the final tree (arm tree related)

2013-09-03 Thread Rob Herring
in and resubmit it rebased on top of Will's barriers series. Rob 8< From: Rob Herring Date: Tue, 3 Sep 2013 07:35:41 -0500 Subject: [PATCH] ARM: fix undefined reference to erratum_a15_798181_init on !SMP Fix build error on !SMP builds introdu

<    1   2   3   4   5   6   7   8   9   10   >