Re: [PATCH] of: Specify initrd location using 64-bit

2013-06-27 Thread Rob Herring
On 06/21/2013 12:20 PM, Santosh Shilimkar wrote: On Friday 21 June 2013 05:04 AM, Sebastian Andrzej Siewior wrote: On 06/21/2013 02:52 AM, Santosh Shilimkar wrote: diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 0a2c68f..62e2e8f 100644 ---

Re: [PATCH v2] of: Specify initrd location using 64-bit

2013-07-01 Thread Rob Herring
the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting That was quoting me. Otherwise: Acked-by: Rob Herring rob.herr...@calxeda.com Unless Grant feels compelled to pick this up for 3.11, I think it has to wait

Re: [PATCH] of: Fix address decoding on Bimini and js2x machines

2013-07-03 Thread Rob Herring
no objection I will put that in powerpc -next NP. Acked-by: Rob Herring rob.herr...@calxeda.com Rob diff --git a/drivers/of/address.c b/drivers/of/address.c index 04da786..7c8221d 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -106,8 +106,12 @@ static unsigned int

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 a13xp0p0...@gmail.com ---

Re: [GIT PULL] DT/core: cpu_ofnode updates for v3.12

2013-08-13 Thread Rob Herring
On Tue, Aug 13, 2013 at 10:40 AM, Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com wrote: Adding PowerPC list On 13/08/13 14:00, Rafael J. Wysocki wrote: On Monday, August 12, 2013 02:27:47 PM Sudeep KarkadaNagesha wrote: The following changes since commit

Re: [GIT PULL] DT/core: cpu_ofnode updates for v3.12

2013-08-14 Thread Rob Herring
On 08/14/2013 05:01 AM, Sudeep KarkadaNagesha wrote: On 13/08/13 22:07, Benjamin Herrenschmidt wrote: On Tue, 2013-08-13 at 19:29 +0100, Sudeep KarkadaNagesha wrote: I don't understand completely the use of ibm,ppc-interrupt-server#s and its implications on generic of_get_cpu_node

Re: [RFC PATCH v2 3/4] powerpc: refactor of_get_cpu_node to support other architectures

2013-08-19 Thread Rob Herring
On 08/19/2013 05:19 AM, Mark Rutland wrote: On Sat, Aug 17, 2013 at 11:09:36PM +0100, Benjamin Herrenschmidt wrote: On Sat, 2013-08-17 at 12:50 +0200, Tomasz Figa wrote: I wonder how would this handle uniprocessor ARM (pre-v7) cores, for which the updated bindings[1] define #address-cells =

Re: [RFC PATCH v2 4/4] of: move of_get_cpu_node implementation to DT core library

2013-08-19 Thread Rob Herring
are registered, it can be retrieved easily from cpu device of_node which avoids unnecessary parsing and matching. Cc: Rob Herring rob.herr...@calxeda.com Cc: Grant Likely grant.lik...@linaro.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Sudeep KarkadaNagesha

Re: [PATCH RESEND] i2c: move of helpers into the core

2013-08-19 Thread Rob Herring
instead of doing this manually in each driver. So, fix the drivers and documentation, too. Signed-off-by: Wolfram Sang w...@the-dreams.de --- Glad to see this. Acked-by: Rob Herring rob.herr...@calxeda.com Sigh, hitting the CC threshold on vger again. So resending to the lists only. BTW

Re: [PATCH v2 07/10] of/irq: Propagate errors in of_irq_to_resource_table()

2013-09-22 Thread Rob Herring
On Wed, Sep 18, 2013 at 8:24 AM, Thierry Reding thierry.red...@gmail.com wrote: Now that all helpers return precise error codes, this function can propagate these errors to the caller properly. Signed-off-by: Thierry Reding tred...@nvidia.com --- Changes in v2: - return 0 on success or a

Re: [PATCH v2 04/10] irqdomain: Return errors from irq_create_of_mapping()

2013-09-22 Thread Rob Herring
to the new mapping is returned in an output parameter so that the return value is reserved to signal success (== 0) or failure ( 0). Signed-off-by: Thierry Reding tred...@nvidia.com One comment below, otherwise: Acked-by: Rob Herring rob.herr...@calxeda.com diff --git a/arch/powerpc/kernel/pci

Re: [PATCH v2 02/10] of/irq: Use irq_of_parse_and_map()

2013-09-22 Thread Rob Herring
On Wed, Sep 18, 2013 at 8:24 AM, Thierry Reding thierry.red...@gmail.com wrote: Replace some instances of of_irq_map_one()/irq_create_of_mapping() and of_irq_to_resource() by the simpler equivalent irq_of_parse_and_map(). Signed-off-by: Thierry Reding tred...@nvidia.com Acked-by: Rob Herring

Re: [PATCH v2 01/10] of/irq: Rework of_irq_count()

2013-09-22 Thread Rob Herring
-by: Rob Herring rob.herr...@calxeda.com --- drivers/of/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 1752988..5f44388 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -368,9 +368,10 @@ EXPORT_SYMBOL_GPL

[PATCH 17/21] of: move of_translate_dma_address to of_address.h

2013-09-26 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com of_translate_dma_address is implemented in common code, so move the declaration there too. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Grant Likely

[PATCH 19/21] powerpc: add explicit OF includes

2013-09-26 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com When removing prom.h include by of.h, several OF headers will no longer be implicitly included. Add explicit includes of of_*.h as needed. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul

Re: [PATCH v2 1/1] of: reform prom_update_property function

2012-06-25 Thread Rob Herring
. Suggested-by: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Dong Aisheng dong.aish...@linaro.org Acked-by: Rob Herring rob.herr...@calxeda.com Ben, you can merge this via powerpc. Rob --- ChangeLog v1-v2: * keep reconfig.c behavior the same as before after changes --- arch/powerpc

Re: [PATCH 5/5] usb: gadget: composite: parse dt overrides

2012-06-26 Thread Rob Herring
On 06/26/2012 09:27 AM, Alexandre Pereira da Silva wrote: Grab the devicetree node properties to override VendorId, ProductId, bcdDevice, Manucacturer, Product and SerialNumber I'm still confused about what is the order of priority for the 2 possible sources of these values. The way it is

Re: [PATCH 5/5] usb: gadget: composite: parse dt overrides

2012-07-02 Thread Rob Herring
aletes@gmail.com I need Grant's acked-by to queue this one. Grant is pretty much offline for the next 2 months, so: Acked-by: Rob Herring rob.herr...@calxeda.com Rob ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

Re: [PATCH] of: require a match on all fields of of_device_id

2012-07-17 Thread Rob Herring
On 07/17/2012 08:11 PM, Scott Wood wrote: Commit 107a84e61cdd3406c842a0e4be7efffd3a05dba6 (of: match by compatible property first) breaks the gianfar ethernet driver found on various Freescale PPC chips. You do know this is reverted, right? There are, for unfortunate historical reasons,

Re: [PATCH] of: require a match on all fields of of_device_id

2012-07-22 Thread Rob Herring
On 07/18/2012 11:04 AM, Scott Wood wrote: On 07/17/2012 09:38 PM, Rob Herring wrote: On 07/17/2012 08:11 PM, Scott Wood wrote: Commit 107a84e61cdd3406c842a0e4be7efffd3a05dba6 (of: match by compatible property first) breaks the gianfar ethernet driver found on various Freescale PPC chips

Re: [RFC PATCH 4/6] powerpc/85xx: Change vendor prefix for Intersil Corporation to isil

2014-08-21 Thread Rob Herring
On Wed, Aug 20, 2014 at 3:43 AM, Philipp Zabel p.za...@pengutronix.de wrote: Currently there is a wild mixture of isl, isil, and intersil compatibles in the kernel. At this point, changing the vendor symbol to the most often used variant, which is equal to the NASDAQ symbol, isil, should not

Re: [PATCH] powerpc: Check flat device tree version at boot

2014-08-28 Thread Rob Herring
On Thu, Aug 28, 2014 at 3:40 AM, Michael Ellerman m...@ellerman.id.au wrote: In commit e6a6928c3ea1 of/fdt: Convert FDT functions to use libfdt, the kernel stopped supporting old flat device tree formats. The minimum supported version is now 0x10. Ugg. Is that something which needs to be

Re: [PATCH] powerpc: Check flat device tree version at boot

2014-08-29 Thread Rob Herring
On Fri, Aug 29, 2014 at 6:13 AM, Grant Likely grant.lik...@linaro.org wrote: On 29 Aug 2014 02:56, Michael Ellerman m...@ellerman.id.au wrote: On Thu, 2014-08-28 at 09:27 -0500, Rob Herring wrote: On Thu, Aug 28, 2014 at 3:40 AM, Michael Ellerman m...@ellerman.id.au wrote: In commit

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Rob Herring
On Tue, Nov 11, 2014 at 11:51 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: We have a historical hack that treats missing ranges properties as the equivalent of an empty one. This is needed for ancient PowerMac bad device-trees, and shouldn't be enabled for any other PowerPC

[PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com This series is a relatively straight-forward removal of the last remaining user of of_platform_driver (ibmebus) and removal of CONFIG_OF_DEVICE which is always enabled when CONFIG_OF is enabled. Compile tested on powerpc and sparc. Rob Rob Herring (5

[PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On Sun, Apr 21, 2013 at 9:13 PM, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 10:23 -0500, Rob Herring wrote: Ben, Can I have your Ack for this? The change is straightforward and neither of the 2 drivers used the id parameter that is removed. Didn't you get my mail about a compile failure

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On 04/25/2013 03:12 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 14:14 -0500, Rob Herring wrote: On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: [...] You need patch 2 of this series to fix this: driver core: move to_platform_driver to platform_device.h which as Arnd

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-05-22 Thread Rob Herring
On Thu, Apr 25, 2013 at 3:45 PM, Rob Herring robherri...@gmail.com wrote: On 04/25/2013 03:12 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 14:14 -0500, Rob Herring wrote: On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: [...] You need patch 2 of this series to fix

Re: [PATCH 3/5] drivers/amba: create devices from device tree

2011-06-21 Thread Rob Herring
with a arm,primecell-periphid property can override the h/w peripheral id value. Based on the original work by Jeremy Kerr. Signed-off-by: Jeremy Kerr jeremy.k...@canonical.com Acked-by: Linus Walleij linus.wall...@linaro.org Signed-off-by: Rob Herring rob.herr...@calxeda.com Reviewed

Fwd: [PATCH] powerpc: convert to generic pci_*_flags

2011-07-08 Thread Rob Herring
Posting to correct list email... Original Message Subject: [PATCH] powerpc: convert to generic pci_*_flags Date: Fri, 8 Jul 2011 21:21:24 -0500 From: Rob Herring robherri...@gmail.com To: linuxppc-...@lists.infradead.org CC: Rob Herring rob.herr...@calxeda.com, Benjamin

[PATCH 1/3] i2c: move of_i2c_register_devices call into core

2011-08-05 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com All callers of of_i2c_register_devices are immediately preceded by a call to i2c_add_adapter or i2c_add_numbered_adapter. Add call to of_i2c_register_devices and remove all other callers. This causes a module dependency loop that is resolved by the next

Re: [PATCH 1/3] i2c: move of_i2c_register_devices call into core

2011-08-05 Thread Rob Herring
Grant, On 08/05/2011 05:54 PM, Grant Likely wrote: On Fri, Aug 05, 2011 at 04:24:26PM -0500, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com All callers of of_i2c_register_devices are immediately preceded by a call to i2c_add_adapter or i2c_add_numbered_adapter. Add call

Re: [PATCH v3 1/3] devicetree: bindings: add Zarlink to the vendor prefixes

2014-03-25 Thread Rob Herring
...@keymile.com Acked-by: Rob Herring r...@kernel.org --- Changes in v3: None Changes in v2: - add a patch so that the Zarlink vendor prefix is defined Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH 00/20] FDT clean-ups and libfdt support

2014-04-03 Thread Rob Herring
From: Rob Herring r...@kernel.org This is a series of clean-ups of architecture FDT code and converts the core FDT code over to using libfdt functions. This is in preparation to add FDT based address translation parsing functions for early console support. The current MIPS lantiq and xlp DT

[PATCH 09/20] of/fdt: create common debugfs

2014-04-03 Thread Rob Herring
From: Rob Herring r...@kernel.org Both powerpc and microblaze have the same FDT blob in debugfs feature. Move this to common location and remove the powerpc and microblaze implementations. This feature could become more useful when FDT overlay support is added. This changes the path of the blob

[PATCH 20/20] of: push struct boot_param_header and defines into powerpc

2014-04-03 Thread Rob Herring
From: Rob Herring r...@kernel.org Now powerpc is the only user of struct boot_param_header and FDT defines, so they can be moved into the powerpc architecture code. Signed-off-by: Rob Herring r...@kernel.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org

Re: [PATCH 09/20] of/fdt: create common debugfs

2014-04-04 Thread Rob Herring
On Fri, Apr 4, 2014 at 7:16 AM, Michal Simek mon...@monstr.eu wrote: On 04/04/2014 12:16 AM, Rob Herring wrote: From: Rob Herring r...@kernel.org Both powerpc and microblaze have the same FDT blob in debugfs feature. Move this to common location and remove the powerpc and microblaze

Re: [PATCH 09/20] of/fdt: create common debugfs

2014-04-04 Thread Rob Herring
On Fri, Apr 4, 2014 at 8:22 AM, Michal Simek mon...@monstr.eu wrote: On 04/04/2014 03:00 PM, Rob Herring wrote: On Fri, Apr 4, 2014 at 7:16 AM, Michal Simek mon...@monstr.eu wrote: On 04/04/2014 12:16 AM, Rob Herring wrote: From: Rob Herring r...@kernel.org Both powerpc and microblaze have

Re: [PATCH 09/20] of/fdt: create common debugfs

2014-04-06 Thread Rob Herring
On Fri, Apr 4, 2014 at 9:11 AM, Michal Simek mon...@monstr.eu wrote: On 04/04/2014 03:32 PM, Rob Herring wrote: On Fri, Apr 4, 2014 at 8:22 AM, Michal Simek mon...@monstr.eu wrote: On 04/04/2014 03:00 PM, Rob Herring wrote: On Fri, Apr 4, 2014 at 7:16 AM, Michal Simek mon...@monstr.eu wrote

Re: [PATCH v3 2/3] devcietree: bindings: add some MFD Keymile FPGAs

2014-04-10 Thread Rob Herring
On Tue, Apr 8, 2014 at 7:44 PM, Scott Wood scottw...@freescale.com wrote: On Tue, 2014-03-25 at 14:41 +0100, Valentin Longchamp wrote: These are the bindings for 2 MFD devices used on some of the Keymile boards. The first one is the chassis managmenet bfticu FPGA. The second one is the board

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

2014-04-17 Thread Rob Herring
On Thu, Apr 17, 2014 at 12:41 PM, Leif Lindholm leif.lindh...@linaro.org 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 the tree currently working only because of that

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 leif.lindh...@linaro.org 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 leif.lindh...@linaro.org wrote: drivers/of/fdt.c contains a workaround for a missing memory type entry

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 leif.lindh...@linaro.org 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

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

2014-04-21 Thread Rob Herring
On Fri, Apr 18, 2014 at 7:59 AM, Leif Lindholm leif.lindh...@linaro.org wrote: 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 leif.lindh...@linaro.org wrote: In order to deal with an firmware bug on a specific

[PATCH v2 00/21] FDT clean-ups and libfdt support

2014-04-22 Thread Rob Herring
From: Rob Herring r...@kernel.org This is a series of clean-ups of architecture FDT code and converts the core FDT code over to using libfdt functions. This is in preparation to add FDT based address translation parsing functions for early console support. This series removes direct access to FDT

[PATCH v2 14/21] of/fdt: create common debugfs

2014-04-22 Thread Rob Herring
From: Rob Herring r...@kernel.org Both powerpc and microblaze have the same FDT blob in debugfs feature. Move this to common location and remove the powerpc and microblaze implementations. This feature could become more useful when FDT overlay support is added. This changes the path of the blob

[PATCH v2 21/21] of: push struct boot_param_header and defines into powerpc

2014-04-22 Thread Rob Herring
From: Rob Herring r...@kernel.org Now powerpc is the only user of struct boot_param_header and FDT defines, so they can be moved into the powerpc architecture code. Signed-off-by: Rob Herring r...@kernel.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org

[PATCH] powerpc: fix skipping call to early_init_fdt_scan_reserved_mem

2014-04-30 Thread Rob Herring
From: Rob Herring r...@kernel.org The call to early_init_fdt_scan_reserved_mem will be skipped if reserved-ranges is not found. Move the call earlier so that it is called unconditionally. Signed-off-by: Rob Herring r...@kernel.org Cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Benjamin

Re: linux-next: build failure after merge of the dt-rh tree

2013-10-28 Thread Rob Herring
tree now seems like the better path. From: Stephen Rothwell s...@canb.auug.org.au Date: Mon, 28 Oct 2013 19:34:41 +1100 Subject: [PATCH] powerpc: add include of prom.h to fix powernv/rng.c build Signed-off-by: Stephen Rothwell s...@canb.auug.org.au Acked-by: Rob Herring rob.herr

Re: linux-next: manual merge of the dt-rh tree with the powerpc tree

2013-11-01 Thread Rob Herring
On 11/01/2013 12:20 AM, Stephen Rothwell wrote: Hi Rob, Today's linux-next merge of the dt-rh tree got a conflict in arch/powerpc/include/asm/prom.h between commit a3e31b458844 (of: Move definition of of_find_next_cache_node into common code) from the powerpc tree and commit 0c3f061c195c

[PATCH] powerpc: add explicit OF includes for ppc4xx

2013-11-10 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Commit b5b4bb3f6a11f9 (of: only include prom.h on sparc) removed implicit includes of of_*.h headers by powerpc's prom.h. Some PPC4xx components were missed in initial clean-up patch, so add the necessary includes to fix ppc4xx builds. Signed-off-by: Rob

Re: commit e38c0a1f breaks powerpc boards with uli1575 chip

2013-12-18 Thread Rob Herring
[fixed DT maillist address] On 12/17/2013 01:35 AM, Nikita Yushchenko wrote: Hi While trying to make freescale p2020ds and mpc8572ds boards working with mainline kernel, I faced that commit e38c0a1f (Handle #address-cells 2 specially) breaks things with these boards. Good to see this

Re: [PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-29 Thread Rob Herring
On Sun, Dec 29, 2013 at 8:37 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2013-12-17 at 18:32 +0100, Cédric Le Goater wrote: Commit 2361613206e6, of/irq: Refactor interrupt-map parsing changed the refcount on the device_node causing an error in of_node_put(): Grant,

Re: [PATCH] of: give priority to the compatible match in __of_match_node()

2014-02-13 Thread Rob Herring
On Wed, Feb 12, 2014 at 5:38 AM, Kevin Hao haoke...@gmail.com wrote: When the device node do have a compatible property, we definitely prefer the compatible match besides the type and name. Only if there is no such a match, we then consider the candidate which doesn't have compatible entry but

Re: [PATCH 2/2] of: search the best compatible match first in __of_match_node()

2014-02-14 Thread Rob Herring
On Thu, Feb 13, 2014 at 11:22 PM, Kevin Hao haoke...@gmail.com wrote: Currently, of_match_node compares each given match against all node's compatible strings with of_device_is_compatible. To achieve multiple compatible strings per node with ordering from specific to generic, this requires

Re: [RFC PATCH 14/15] dt: Eliminate of_platform_{,un}register_driver

2011-02-23 Thread Rob Herring
Grant, On 02/22/2011 10:34 PM, Grant Likely wrote: Final step to eliminate of_platform_bus_type. They're all just platform drivers now. Signed-off-by: Grant Likelygrant.lik...@secretlab.ca --- snip diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index

Re: [RFC PATCH 02/15] dt: add a match table pointer to struct device

2011-02-23 Thread Rob Herring
Grant, On 02/22/2011 10:33 PM, Grant Likely wrote: Add a new .of_match field to struct device which points at the matching device driver .of_match_table entry when a device is probed via the device tree Signed-off-by: Grant Likelygrant.lik...@secretlab.ca --- include/linux/device.h|1

Re: [PATCH] of: specify initrd location using 64-bit

2012-09-12 Thread Rob Herring
On 09/12/2012 11:05 AM, Cyril Chemparathy wrote: On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers. This patch globally modifies the

Re: [PATCH] of: specify initrd location using 64-bit

2012-09-12 Thread Rob Herring
On 09/12/2012 03:31 PM, Nicolas Pitre wrote: On Wed, 12 Sep 2012, Rob Herring wrote: On 09/12/2012 11:05 AM, Cyril Chemparathy wrote: On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd

Re: [PATCH] of: specify initrd location using 64-bit

2012-09-12 Thread Rob Herring
On 09/12/2012 02:58 PM, Sebastian Andrzej Siewior wrote: On 09/12/2012 08:02 PM, Cyril Chemparathy wrote: -void __init early_init_dt_setup_initrd_arch(unsigned long start, unsigned long end) +void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) Why not phys_addr_t? The rest of

Re: [PATCH] of: specify initrd location using 64-bit

2012-09-13 Thread Rob Herring
On 09/13/2012 01:47 AM, Sebastian Andrzej Siewior wrote: On 09/13/2012 12:08 AM, Rob Herring wrote: Geert is right here. If it is a physical address, it should be phys_addr_t. While generally true, for the DT specific code I think it should be a fixed u64. The size of the address is defined

Re: [PATCH v2 4/7] dt/powerpc/sysdev: Use of_get_child_by_name to get a named child.

2012-09-14 Thread Rob Herring
On 09/14/2012 03:19 AM, Srinivas KANDAGATLA wrote: From: Srinivas Kandagatla srinivas.kandaga...@st.com As follow-up to dt: introduce of_get_child_by_name to get child node by name. patch, This patch removes some of the code duplication in the driver by replacing it with of_get_child_by_name

Re: [PATCH v2 2/7] dt/powerpc: Use of_get_child_by_name to get a named child.

2012-09-14 Thread Rob Herring
On 09/14/2012 03:18 AM, Srinivas KANDAGATLA wrote: From: Srinivas Kandagatla srinivas.kandaga...@st.com As follow-up to dt: introduce of_get_child_by_name to get child node by name. patch, This patch removes some of the code duplication in the driver by replacing it with of_get_child_by_name

Re: [RESEND PATCH v3 1/5] dt: introduce of_get_child_by_name to get child node by name.

2012-09-17 Thread Rob Herring
On 09/17/2012 06:58 AM, Srinivas KANDAGATLA wrote: From: Srinivas Kandagatla srinivas.kandaga...@st.com Please drop the period on the subject. This patch introduces of_get_child_by_name function to get a child node by its name in a given parent node. Without this patch each driver code

Re: [RESEND PATCH v3 1/5] dt: introduce of_get_child_by_name to get child node by name.

2012-09-17 Thread Rob Herring
On 09/17/2012 06:58 AM, Srinivas KANDAGATLA wrote: From: Srinivas Kandagatla srinivas.kandaga...@st.com Please drop the period on the subject. This patch introduces of_get_child_by_name function to get a child node by its name in a given parent node. Without this patch each driver code

Re: [PATCH] of/fdt: Don't copy garbage after / in root node path

2012-11-10 Thread Rob Herring
On 10/21/2012 07:32 PM, Benjamin Herrenschmidt wrote: The root node path must be internally converted to /, or various pieces of code looking for it that way will fail. The code to do that however had a bug where we might incorrectly append pieces of the original path from the fdt to the /.

Re: pci and pcie device-tree binding - range No cells

2012-12-10 Thread Rob Herring
On 12/10/2012 06:20 AM, Michal Simek wrote: Hi Grant and others, I have a question regarding number of cells in ranges property for pci and pcie nodes. Linux pci/pcie powerpc DTSes contain 7 cells (xpedite5370.dts, sequoia.dts, etc) but also 6 cells format too (mpc832x_mds.dts) Here

Re: pci and pcie device-tree binding - range No cells

2012-12-10 Thread Rob Herring
On 12/10/2012 09:05 AM, Michal Simek wrote: On 12/10/2012 03:26 PM, Rob Herring wrote: On 12/10/2012 06:20 AM, Michal Simek wrote: Hi Grant and others, I have a question regarding number of cells in ranges property for pci and pcie nodes. Linux pci/pcie powerpc DTSes contain 7 cells

Re: pci and pcie device-tree binding - range No cells

2012-12-10 Thread Rob Herring
On 12/10/2012 09:37 AM, Michal Simek wrote: On 12/10/2012 04:21 PM, Rob Herring wrote: On 12/10/2012 09:05 AM, Michal Simek wrote: On 12/10/2012 03:26 PM, Rob Herring wrote: On 12/10/2012 06:20 AM, Michal Simek wrote: Hi Grant and others, I have a question regarding number of cells

Re: pci and pcie device-tree binding - range No cells

2012-12-10 Thread Rob Herring
On 12/10/2012 11:15 AM, Thomas Petazzoni wrote: Dear Michal Simek, On Mon, 10 Dec 2012 17:05:13 +0100, Michal Simek wrote: CC: Thomas: I think it will be interesting to see this discussion because you are using size-cell/address-cells equal 1.

Re: pci and pcie device-tree binding - range No cells

2012-12-12 Thread Rob Herring
On 12/12/2012 10:16 AM, Thomas Petazzoni wrote: Dear Rob Herring, On Mon, 10 Dec 2012 17:24:44 -0600, Rob Herring wrote: Marvell SoCs have up to 20 configurable address windows, which allow you, at run time, to say I would like the range from physical address 0x to 0x

Re: [PATCH] of: Fix export of of_find_matching_node_and_match()

2012-12-19 Thread Rob Herring
. Reported-by: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Grant Likely grant.lik...@secretlab.ca Cc: Stephen Warren swar...@nvidia.com Cc: Rob Herring rob.herr...@calxeda.com Cc: Anatolij Gustschin ag...@denx.de Rob, I've just pushed this out to my devicetree/merge branch

Re: Please revert commit dc9372808412edbc653a675a526c2ee6c0c14a91

2011-11-22 Thread Rob Herring
On 11/22/2011 04:43 PM, Grant Likely wrote: On Tue, Nov 22, 2011 at 3:11 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Hi Linus ! Please, revert commit dc9372808412edbc653a675a526c2ee6c0c14a91 of/irq: of_irq_find_parent: check for parent equal to child This breaks some

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-11 Thread Rob Herring
Grant, On 01/11/2012 02:22 PM, Grant Likely wrote: This patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure for all irq_domain users. The powerpc infrastructure includes support for complex mappings between Linux and hardware irq numbers, and can

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Rob Herring
Adding lakml... On 01/11/2012 03:27 PM, Grant Likely wrote: On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring robherri...@gmail.com wrote: Grant, On 01/11/2012 02:22 PM, Grant Likely wrote: This patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure

Re: [RFC 12/14] irq_domain: Add support for base irq and hwirq in legacy mappings

2012-01-12 Thread Rob Herring
On 01/11/2012 02:22 PM, Grant Likely wrote: Add support for a legacy mapping where irq = (hwirq - first_hwirq + first_irq) so that a controller driver can allocate a fixed range of irq_descs and use a simple calculation to translate back and forth between linux and hw irq numbers. This is

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Rob Herring
On 01/12/2012 06:47 PM, Grant Likely wrote: On Thu, Jan 12, 2012 at 5:31 PM, Rob Herring robherri...@gmail.com wrote: Adding lakml... On 01/11/2012 03:27 PM, Grant Likely wrote: On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring robherri...@gmail.com wrote: Grant, On 01/11/2012 02:22 PM, Grant

Re: [RFCv2 00/14]

2012-01-23 Thread Rob Herring
On 01/23/2012 03:07 PM, Grant Likely wrote: Hey everyone, Here's the second RFC for the irq_domain patches. I could use some help testing now. I still expect there will be a few bugs. The series is based on v3.3-rc1, and I've pushed it out to my git server:

Re: [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host

2012-01-24 Thread Rob Herring
On 01/23/2012 03:07 PM, Grant Likely wrote: Part of the series to unify the irq remapping mechanisms in the kernel. A follow up patch will copy the powerpc implementation into kernel/irq/irqdomain.c, which will be a lot easier if the structures are identical. Where they differ, I've chose

Re: [RFCv2 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-24 Thread Rob Herring
On 01/23/2012 03:07 PM, Grant Likely wrote: This patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure for all irq_domain users. The powerpc infrastructure includes support for complex mappings between Linux and hardware irq numbers, and can manage

Re: [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host

2012-01-24 Thread Rob Herring
On 01/24/2012 04:08 PM, Grant Likely wrote: On Tue, Jan 24, 2012 at 2:38 PM, Rob Herring robherri...@gmail.com wrote: On 01/23/2012 03:07 PM, Grant Likely wrote: Part of the series to unify the irq remapping mechanisms in the kernel. A follow up patch will copy the powerpc implementation

Re: [RFC 1/2] irq_domain: Create common xlate functions that device drivers can use

2012-01-24 Thread Rob Herring
On 01/24/2012 06:18 PM, Grant Likely wrote: Rather than having each interrupt controller driver creating its own barely unique .xlate function for irq_domain, create a library of translators which any driver can use directly. Signed-off-by: Grant Likely grant.lik...@secretlab.ca Cc: Rob

Re: [RFCv2 00/14]

2012-01-25 Thread Rob Herring
On 01/25/2012 08:13 AM, Cousson, Benoit wrote: On 1/23/2012 10:53 PM, Rob Herring wrote: On 01/23/2012 03:07 PM, Grant Likely wrote: Hey everyone, Here's the second RFC for the irq_domain patches. I could use some help testing now. I still expect there will be a few bugs. The series

[PATCH] irq: make SPARSE_IRQ an optionally hidden option

2012-01-25 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com On ARM, we don't want SPARSE_IRQ to be a user visible option. Make SPARSE_IRQ visible based on MAY_HAVE_SPARSE_IRQ instead of depending on HAVE_SPARSE_IRQ. With this, SPARSE_IRQ is not visible on C6X and ARM. Signed-off-by: Rob Herring rob.herr

Re: [RFC 1/2] irq_domain: Create common xlate functions that device drivers can use

2012-01-26 Thread Rob Herring
On 01/25/2012 11:59 AM, Grant Likely wrote: On Tue, Jan 24, 2012 at 10:35 PM, Grant Likely grant.lik...@secretlab.ca wrote: On Tue, Jan 24, 2012 at 6:50 PM, Rob Herring robherri...@gmail.com wrote: On 01/24/2012 06:18 PM, Grant Likely wrote: Rather than having each interrupt controller

Re: [PATCH v3 00/25] irq_domain generalization and refinement

2012-01-28 Thread Rob Herring
On 01/27/2012 03:35 PM, Grant Likely wrote: Hey everyone, This patch series is ready for much wider consumption now. I'd like to get it into linux-next ASAP because there will be ARM board support depending on it. I'll wait a few days before I ask Stephen to pull this in.

Re: [PATCH v3 14/25] irq_domain: Remove irq_domain_add_simple()

2012-01-31 Thread Rob Herring
in host_data pointer on irq_domain allocation. Signed-off-by: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: Thomas Gleixner t...@linutronix.de Cc: Milton Miller milt...@bga.com --- arch/arm/mach-imx/mach-imx6q.c |3 ++- arch/arm/mach-msm/board-msm8x60

[PULL] ARM mach/irqs.h cleanup for 3.4

2012-01-31 Thread Rob Herring
: Linux 3.3-rc1 (2012-01-19 15:04:48 -0800) are available in the git repository at: git://sources.calxeda.com/kernel/linux.git sparse_irq Jamie Iles (1): ARM: picoxcell: remove mach/irqs.h Rob Herring (13): irq: make SPARSE_IRQ an optionally hidden option sound: pxa2xx-ac97

Re: [PATCH v3 00/25] irq_domain generalization and refinement

2012-02-05 Thread Rob Herring
Russell, On 02/04/2012 04:17 PM, Russell King - ARM Linux wrote: On Fri, Jan 27, 2012 at 02:35:54PM -0700, Grant Likely wrote: Hey everyone, This patch series is ready for much wider consumption now. I'd like to get it into linux-next ASAP because there will be ARM board support depending

Re: [PATCH] of/mdio: fix fixed link bus name

2012-02-27 Thread Rob Herring
On 02/27/2012 06:48 AM, Baruch Siach wrote: Since 9e6c643b (phy/fixed: use an unique MDIO bus name) the name of the fixed PHY bus is fixed-0. Teach of_phy_connect_fixed_link() the new name. Applied for 3.3. Rob Tested on a P1020RDB PowerPC system. Signed-off-by: Baruch Siach

Re: linux-next: manual merge of the powerpc tree with the arm tree

2012-03-09 Thread Rob Herring
On 03/08/2012 09:13 PM, Benjamin Herrenschmidt wrote: On Fri, 2012-03-09 at 00:39 +, Russell King wrote: On Fri, Mar 09, 2012 at 10:35:46AM +1100, Benjamin Herrenschmidt wrote: Actually, I didn't keep MAY_HAVE_SPARSE_IRQ, I kept HAVE_SPARSE_IRQ. If I remove it, then I get Kconfig warnings:

Re: [PATCH 00/16] PCI generic configuration space accessors

2015-01-22 Thread Rob Herring
On Thu, Jan 22, 2015 at 3:03 PM, Bjorn Helgaas bhelg...@google.com wrote: On Fri, Jan 09, 2015 at 08:34:34PM -0600, Rob Herring wrote: This series adds common accessor functions for PCI configuration space accesses. This supports most PCI hosts with memory mapped configuration space like ECAM

[PATCH 04/16] powerpc: add struct pci_ops member names to initialization

2015-01-10 Thread Rob Herring
Some instances of pci_ops initialization rely on the read/write members' location in the struct. This is fragile and may break when adding new members to the beginning of the struct. Signed-off-by: Rob Herring r...@kernel.org Cc: Arnd Bergmann a...@arndb.de Cc: Benjamin Herrenschmidt b

[PATCH 11/16] powerpc: powermac: convert PCI to use generic config accesses

2015-01-10 Thread Rob Herring
Convert the powermac PCI driver to use the generic config access functions. This changes accesses from (in|out)_(8|le16|le32) to readX/writeX variants. I believe these should be equivalent for PCI config space accesses, but confirmation would be nice. Signed-off-by: Rob Herring r...@kernel.org

[PATCH 10/16] powerpc: fsl_pci: convert PCI to use generic config accesses

2015-01-10 Thread Rob Herring
Convert the fsl_pci driver to use the generic config access functions. This changes accesses from (in|out)_(8|le16|le32) to readX/writeX variants. I believe these should be equivalent for PCI config space accesses, but confirmation would be nice. Signed-off-by: Rob Herring r...@kernel.org Cc

[PATCH 00/16] PCI generic configuration space accessors

2015-01-10 Thread Rob Herring
-able functions that I've not gotten my head around. This series is available here [1]. Rob [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git pci-config-access Rob Herring (16): frv: add struct pci_ops member names to initialization mips: add struct pci_ops member names

Re: [PATCH] Revert of: Fix premature bootconsole disable with 'stdout-path'

2015-03-18 Thread Rob Herring
On Tue, Mar 17, 2015 at 11:47 PM, Michael Ellerman m...@ellerman.id.au wrote: On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote: This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d. The assumption that at least 1 preferred console will be registered when the stdout-path property

Re: [PATCH v5 16/29] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-03-06 Thread Rob Herring
On Fri, Mar 6, 2015 at 3:33 AM, Yijing Wang wangyij...@huawei.com wrote: Now we could use pci_scan_host_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Benjamin

  1   2   3   4   5   6   7   8   9   10   >