Re: [RFC PATCH 4/9] of: Add property_ops callback for devices with of_node

2014-08-17 Thread Grant Likely
On Sun, 17 Aug 2014 09:04:14 +0300, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Aaron Lu aaron...@intel.com With the unified device properties interface in place, add device tree support. By adding the dev_prop_ops for of_node devices, drivers can access properties from

Re: [RFC PATCH 3/9] Driver core: Unified device properties interface for platform firmware

2014-08-17 Thread Grant Likely
Hi Mika and Rafael, Comments below... On Sun, 17 Aug 2014 09:04:13 +0300, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Add a uniform interface by which device drivers can request device properties from the platform firmware by

Re: [RFC PATCH 6/9] gpiolib: add API to get gpio desc and flags

2014-08-17 Thread Grant Likely
On Sun, 17 Aug 2014 09:04:16 +0300, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Aaron Lu aaron...@intel.com Add a new API to get the GPIO's description pointer and its flags for both OF based system and ACPI based system. This is useful in drivers that do not need to care

Re: [PATCH 1/3] of: Add of_match_machine helper

2014-08-17 Thread Grant Likely
On Fri, 8 Aug 2014 14:01:57 -0500, Rob Herring robherri...@gmail.com wrote: On Fri, Aug 8, 2014 at 8:23 AM, Tuomas Tynkkynen ttynkky...@nvidia.com wrote: On 08/08/14 12:41, Thierry Reding wrote: +const struct of_device_id *of_match_machine(const struct of_device_id *matches) +{

Re: [PATCH 1/3] of: Add of_match_machine helper

2014-08-17 Thread Grant Likely
On Fri, 8 Aug 2014 02:01:53 +0300, Tuomas Tynkkynen ttynkky...@nvidia.com wrote: Add of_match_machine function to test the device tree root for an of_match array. This can be useful when testing SoC versions at runtime, for example. Signed-off-by: Tuomas Tynkkynen ttynkky...@nvidia.com ---

[GIT PULL] Additional devicetree changes for v3.17

2014-08-16 Thread Grant Likely
Hi Linus, Please pull the following tree with some bug fixes for devicetree. g. The following changes since commit c9d26423e56ce1ab4d786f92aebecf859d419293: Merge tag 'pm+acpi-3.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (2014-08-14 18:13:46 -0600) are

Re: [PATCH v2] of: Deep-copy names of platform devices

2014-08-16 Thread Grant Likely
On Fri, Aug 15, 2014 at 5:38 PM, Rob Herring wrote: > Adding Greg... > > On Tue, Aug 12, 2014 at 9:30 PM, Stepan Moskovchenko > wrote: >> When we parse the device tree and allocate platform >> devices, the 'name' of the newly-created platform_device >> is set to point to the 'name' field of the

Re: [PATCH v2] of: Deep-copy names of platform devices

2014-08-16 Thread Grant Likely
On Fri, Aug 15, 2014 at 5:38 PM, Rob Herring robherri...@gmail.com wrote: Adding Greg... On Tue, Aug 12, 2014 at 9:30 PM, Stepan Moskovchenko step...@codeaurora.org wrote: When we parse the device tree and allocate platform devices, the 'name' of the newly-created platform_device is set to

[GIT PULL] Additional devicetree changes for v3.17

2014-08-16 Thread Grant Likely
Hi Linus, Please pull the following tree with some bug fixes for devicetree. g. The following changes since commit c9d26423e56ce1ab4d786f92aebecf859d419293: Merge tag 'pm+acpi-3.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (2014-08-14 18:13:46 -0600) are

Re: [PATCH] of/irq: lookup 'interrupts-extended' property first

2014-08-15 Thread Grant Likely
On Wed, 06 Aug 2014 15:12:42 -0700, Florian Fainelli wrote: > On 08/06/2014 02:50 PM, Tim Bird wrote: > > On Wed, Aug 6, 2014 at 1:12 PM, Brian Norris > > wrote: > >> On Wed, Aug 06, 2014 at 01:42:08PM -0500, Rob Herring wrote: > >>> On Wed, Aug 6, 2014 at 11:54 AM, Brian Norris > >>> wrote:

Re: [PATCH v2] of/irq: lookup 'interrupts-extended' property first

2014-08-15 Thread Grant Likely
On Wed, 6 Aug 2014 13:15:00 -0700, Brian Norris wrote: > On Wed, Aug 06, 2014 at 01:02:27PM -0700, Florian Fainelli wrote: > > In case the Device Tree blob passed by the boot agent supplies both an > > 'interrupts-extended' and an 'interrupts' property in order to allow for > > older kernels to

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Fri, Aug 15, 2014 at 11:52 AM, Grant Likely wrote: > On Fri, Aug 15, 2014 at 11:45 AM, Grant Likely > wrote: >> On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd >> wrote: >>> On 08/12/14 17:57, Stepan Moskovchenko wrote: >>> > diff --git a/dr

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Fri, Aug 15, 2014 at 11:45 AM, Grant Likely wrote: > On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd wrote: >> On 08/12/14 17:57, Stepan Moskovchenko wrote: >> > diff --git a/drivers/of/device.c b/drivers/of/device.c >> > index f685e55..3e116f6 100644 >

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd wrote: > On 08/12/14 17:57, Stepan Moskovchenko wrote: > > diff --git a/drivers/of/device.c b/drivers/of/device.c > > index f685e55..3e116f6 100644 > > --- a/drivers/of/device.c > > +++ b/drivers/of/device.c > > @@ -54,7 +54,7 @@ int

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd sb...@codeaurora.org wrote: On 08/12/14 17:57, Stepan Moskovchenko wrote: diff --git a/drivers/of/device.c b/drivers/of/device.c index f685e55..3e116f6 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -54,7 +54,7 @@ int

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Fri, Aug 15, 2014 at 11:45 AM, Grant Likely grant.lik...@linaro.org wrote: On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd sb...@codeaurora.org wrote: On 08/12/14 17:57, Stepan Moskovchenko wrote: diff --git a/drivers/of/device.c b/drivers/of/device.c index f685e55..3e116f6 100644

Re: [PATCH] of: Deep-copy names of platform devices

2014-08-15 Thread Grant Likely
On Fri, Aug 15, 2014 at 11:52 AM, Grant Likely grant.lik...@linaro.org wrote: On Fri, Aug 15, 2014 at 11:45 AM, Grant Likely grant.lik...@linaro.org wrote: On Tue, 12 Aug 2014 18:46:36 -0700, Stephen Boyd sb...@codeaurora.org wrote: On 08/12/14 17:57, Stepan Moskovchenko wrote: diff --git

Re: [PATCH v2] of/irq: lookup 'interrupts-extended' property first

2014-08-15 Thread Grant Likely
On Wed, 6 Aug 2014 13:15:00 -0700, Brian Norris computersforpe...@gmail.com wrote: On Wed, Aug 06, 2014 at 01:02:27PM -0700, Florian Fainelli wrote: In case the Device Tree blob passed by the boot agent supplies both an 'interrupts-extended' and an 'interrupts' property in order to allow for

Re: [PATCH] of/irq: lookup 'interrupts-extended' property first

2014-08-15 Thread Grant Likely
On Wed, 06 Aug 2014 15:12:42 -0700, Florian Fainelli f.faine...@gmail.com wrote: On 08/06/2014 02:50 PM, Tim Bird wrote: On Wed, Aug 6, 2014 at 1:12 PM, Brian Norris computersforpe...@gmail.com wrote: On Wed, Aug 06, 2014 at 01:42:08PM -0500, Rob Herring wrote: On Wed, Aug 6, 2014 at

[GIT PULL] Devicetree changes for v3.17

2014-08-11 Thread Grant Likely
of: Fixing OF Selftest build error Grant Likely (15): of: Create of_console_check() for selecting a console specified in /chosen of: Enable console on serial ports specified by /chosen/stdout-path arm/versatile: Add the uart as the stdout device. tty: Update

Re: of: Make OF_DYNAMIC user selectable

2014-08-11 Thread Grant Likely
On Mon, 28 Jul 2014 09:35:26 +1000, Stephen Rothwell wrote: > Hi Grant, > > I noticed the subject commit in the devicetree tree in linux-next today. > The commit message gives us no idea why we would want to make this > change. We already have lots of user selectable CONFIG_ options ... do >

Re: of: Make OF_DYNAMIC user selectable

2014-08-11 Thread Grant Likely
On Mon, 28 Jul 2014 09:35:26 +1000, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Grant, I noticed the subject commit in the devicetree tree in linux-next today. The commit message gives us no idea why we would want to make this change. We already have lots of user selectable CONFIG_

[GIT PULL] Devicetree changes for v3.17

2014-08-11 Thread Grant Likely
of: Fixing OF Selftest build error Grant Likely (15): of: Create of_console_check() for selecting a console specified in /chosen of: Enable console on serial ports specified by /chosen/stdout-path arm/versatile: Add the uart as the stdout device. tty: Update

Re: ARC fails to boot on linux-next of 20140711

2014-07-30 Thread Grant Likely
On Sat, 26 Jul 2014 15:10:28 -0500, Rob Herring wrote: > On Sat, Jul 26, 2014 at 11:50 AM, Grant Likely > wrote: > > On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta > > wrote: > >> Hi Rob, > >> > >> On Friday 25 July 2014 07:45 PM, Rob Herring

Re: ARC fails to boot on linux-next of 20140711

2014-07-30 Thread Grant Likely
On Mon, 28 Jul 2014 04:38:38 +, Vineet Gupta wrote: > On Saturday 26 July 2014 10:21 PM, Grant Likely wrote: > > On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta > > wrote: > >> Hi Rob, > >> > >> On Friday 25 July 2014 07:45 PM, Rob Herring wr

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-30 Thread Grant Likely
On Tue, Jul 29, 2014 at 11:33 PM, Marek Szyprowski wrote: > Hello, > > > On 2014-07-29 23:54, Grant Likely wrote: >> >> On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski >> wrote: >>> >>> Initialization procedure of dma coherent pool has been

[GIT PULL] Last minute bug fix for Exynos platform

2014-07-30 Thread Grant Likely
Hi Linus, This bug fix has been brewing for a while. I hate sending it to you so late, but I only got confirmation that it solves the problem this past weekend. The diff looks big for a bug fix, but the majority of it is only executed in the Exynos quirk case. Unfortunately it required splitting

[GIT PULL] Last minute bug fix for Exynos platform

2014-07-30 Thread Grant Likely
Hi Linus, This bug fix has been brewing for a while. I hate sending it to you so late, but I only got confirmation that it solves the problem this past weekend. The diff looks big for a bug fix, but the majority of it is only executed in the Exynos quirk case. Unfortunately it required splitting

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-30 Thread Grant Likely
On Tue, Jul 29, 2014 at 11:33 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: Hello, On 2014-07-29 23:54, Grant Likely wrote: On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Initialization procedure of dma coherent pool has been split into two

Re: ARC fails to boot on linux-next of 20140711

2014-07-30 Thread Grant Likely
On Mon, 28 Jul 2014 04:38:38 +, Vineet Gupta vineet.gup...@synopsys.com wrote: On Saturday 26 July 2014 10:21 PM, Grant Likely wrote: On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi Rob, On Friday 25 July 2014 07:45 PM, Rob Herring wrote

Re: ARC fails to boot on linux-next of 20140711

2014-07-30 Thread Grant Likely
On Sat, 26 Jul 2014 15:10:28 -0500, Rob Herring robherri...@gmail.com wrote: On Sat, Jul 26, 2014 at 11:50 AM, Grant Likely grant.lik...@secretlab.ca wrote: On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi Rob, On Friday 25 July 2014 07:45 PM, Rob

Re: [PATCH v2 0/4] Support for Qualcomm QPNP PMIC's

2014-07-29 Thread Grant Likely
On Fri, 18 Jul 2014 19:13:52 +0300, Stanimir Varbanov wrote: > On 07/18/2014 02:10 AM, Stephen Boyd wrote: > > On 07/17/14 09:17, Stanimir Varbanov wrote: > >> Hello everyone, > >> > >> Here is the continuation of patch sets sent recently about Qualcomm > >> QPNP SPMI PMICs. > >> > >> The

Re: use IORESOURCE_REG resource type for non-translatable addresses in DT

2014-07-29 Thread Grant Likely
On Tue, 29 Jul 2014 17:06:42 +0300, Stanimir Varbanov wrote: > Arnd, thanks for the comments. > > On 07/29/2014 03:00 PM, Arnd Bergmann wrote: > > On Tuesday 29 July 2014 14:42:31 Stanimir Varbanov wrote: > >> taddr = of_translate_address(dev, addrp); > >> - if (taddr ==

Re: [PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-29 Thread Grant Likely
On Tue, 29 Jul 2014 16:47:04 +0200, Marek Szyprowski wrote: > Hello, > > On 2014-07-28 16:17, Grant Likely wrote: > > On Mon, 14 Jul 2014 10:28:05 +0200, Marek Szyprowski > > wrote: > >> Use recently introduced of_reserved_mem_device_init() function to > &

Re: [PATCH v2 RESEND 4/4] drivers: dma-contiguous: add initialization from device tree

2014-07-29 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:07 +0200, Marek Szyprowski wrote: > Add a function to create CMA region from previously reserved memory > and add support for handling 'shared-dma-pool' reserved-memory device > tree nodes. > > Based on previous code provided by Josh Cartwright I think this is okay

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-29 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski wrote: > Initialization procedure of dma coherent pool has been split into two > parts, so memory pool can now be initialized without assigning to > particular struct device. Then initialized region can be assigned to > more than one struct

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-29 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Initialization procedure of dma coherent pool has been split into two parts, so memory pool can now be initialized without assigning to particular struct device. Then initialized region can be assigned to

Re: [PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-29 Thread Grant Likely
On Tue, 29 Jul 2014 16:47:04 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Hello, On 2014-07-28 16:17, Grant Likely wrote: On Mon, 14 Jul 2014 10:28:05 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Use recently introduced of_reserved_mem_device_init() function

Re: [PATCH v2 RESEND 4/4] drivers: dma-contiguous: add initialization from device tree

2014-07-29 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:07 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Add a function to create CMA region from previously reserved memory and add support for handling 'shared-dma-pool' reserved-memory device tree nodes. Based on previous code provided by Josh Cartwright

Re: use IORESOURCE_REG resource type for non-translatable addresses in DT

2014-07-29 Thread Grant Likely
On Tue, 29 Jul 2014 17:06:42 +0300, Stanimir Varbanov svarba...@mm-sol.com wrote: Arnd, thanks for the comments. On 07/29/2014 03:00 PM, Arnd Bergmann wrote: On Tuesday 29 July 2014 14:42:31 Stanimir Varbanov wrote: taddr = of_translate_address(dev, addrp); - if (taddr ==

Re: [PATCH v2 0/4] Support for Qualcomm QPNP PMIC's

2014-07-29 Thread Grant Likely
On Fri, 18 Jul 2014 19:13:52 +0300, Stanimir Varbanov svarba...@mm-sol.com wrote: On 07/18/2014 02:10 AM, Stephen Boyd wrote: On 07/17/14 09:17, Stanimir Varbanov wrote: Hello everyone, Here is the continuation of patch sets sent recently about Qualcomm QPNP SPMI PMICs. The

Re: [RFC PATCH 2/2] of/clk: use "clkops-clocks" to specify clocks handled by clock_ops domain

2014-07-28 Thread Grant Likely
On Mon, Jul 28, 2014 at 11:47 AM, Grygorii Strashko wrote: > Hi Grant. > > On 07/28/2014 05:05 PM, Grant Likely wrote: >> On Thu, 12 Jun 2014 19:53:43 +0300, Grygorii Strashko >> wrote: >>> Use "clkops-clocks" property to specify clocks handled by >

Re: [PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-28 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:05 +0200, Marek Szyprowski wrote: > Use recently introduced of_reserved_mem_device_init() function to > automatically assign respective reserved memory region to the newly created > platform and amba device. > > Signed-off-by: Marek Szyprowski I'm still not okay with

Re: [PATCH v2 RESEND 1/4] drivers: of: add automated assignment of reserved regions to client devices

2014-07-28 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:04 +0200, Marek Szyprowski wrote: > This patch adds code for automated assignment of reserved memory regions > to struct device. reserved_mem->ops->device_init()/device_cleanup() > callbacks are called to perform reserved memory driver specific > initialization and

Re: [PATCH 02/14] clk: Create of_clk_shared_by_cpus()

2014-07-28 Thread Grant Likely
On Tue, 1 Jul 2014 22:02:31 +0530, Viresh Kumar wrote: > Create a new routine of_clk_shared_by_cpus() that finds if clock lines are > shared between two CPUs. This is verified by comparing "clocks" property from > CPU's DT node. > > Returns 1 if clock line is shared between them, 0 if clock

Re: [RFC PATCH 2/2] of/clk: use "clkops-clocks" to specify clocks handled by clock_ops domain

2014-07-28 Thread Grant Likely
On Thu, 12 Jun 2014 19:53:43 +0300, Grygorii Strashko wrote: > Use "clkops-clocks" property to specify clocks handled by > clock_ops domain PM domain. Only clocks defined in "clkops-clocks" > set of clocks will be handled by Runtime PM through clock_ops > Pm domain. > > Signed-off-by: Grygorii

Re: [PATCHv9 4/4] dt: mailbox: add generic bindings

2014-07-28 Thread Grant Likely
On Wed, 23 Jul 2014 00:27:36 +0530, Jassi Brar wrote: > Define generic bindings for the framework clients to > request mailbox channels. > > Signed-off-by: Jassi Brar Looks okay to me. g. > --- > .../devicetree/bindings/mailbox/mailbox.txt| 36 > ++ > 1 file

Re: [PATCH/RFC v4 07/21] of: add of_node_ncmp wrapper

2014-07-28 Thread Grant Likely
On Fri, 11 Jul 2014 16:04:10 +0200, Jacek Anaszewski wrote: > The wrapper for strnicmp is required for checking whether a node has > expected prefix. > > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Grant Likely > Cc: Benjamin Herrenschmid

Re: [RFC Patch V1 22/30] mm, of: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-28 Thread Grant Likely
On Mon, 21 Jul 2014 10:52:41 -0700, Nishanth Aravamudan wrote: > On 11.07.2014 [15:37:39 +0800], Jiang Liu wrote: > > When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() > > may return a node without memory, and later cause system failure/panic > > when calling

Re: [RFC Patch V1 22/30] mm, of: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-28 Thread Grant Likely
On Mon, 21 Jul 2014 10:52:41 -0700, Nishanth Aravamudan n...@linux.vnet.ibm.com wrote: On 11.07.2014 [15:37:39 +0800], Jiang Liu wrote: When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when

Re: [PATCH/RFC v4 07/21] of: add of_node_ncmp wrapper

2014-07-28 Thread Grant Likely
On Fri, 11 Jul 2014 16:04:10 +0200, Jacek Anaszewski j.anaszew...@samsung.com wrote: The wrapper for strnicmp is required for checking whether a node has expected prefix. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Grant

Re: [PATCHv9 4/4] dt: mailbox: add generic bindings

2014-07-28 Thread Grant Likely
On Wed, 23 Jul 2014 00:27:36 +0530, Jassi Brar jaswinder.si...@linaro.org wrote: Define generic bindings for the framework clients to request mailbox channels. Signed-off-by: Jassi Brar jaswinder.si...@linaro.org Looks okay to me. g. --- .../devicetree/bindings/mailbox/mailbox.txt

Re: [RFC PATCH 2/2] of/clk: use clkops-clocks to specify clocks handled by clock_ops domain

2014-07-28 Thread Grant Likely
On Thu, 12 Jun 2014 19:53:43 +0300, Grygorii Strashko grygorii.stras...@ti.com wrote: Use clkops-clocks property to specify clocks handled by clock_ops domain PM domain. Only clocks defined in clkops-clocks set of clocks will be handled by Runtime PM through clock_ops Pm domain.

Re: [PATCH v2 RESEND 1/4] drivers: of: add automated assignment of reserved regions to client devices

2014-07-28 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:04 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: This patch adds code for automated assignment of reserved memory regions to struct device. reserved_mem-ops-device_init()/device_cleanup() callbacks are called to perform reserved memory driver specific

Re: [PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-28 Thread Grant Likely
On Mon, 14 Jul 2014 10:28:05 +0200, Marek Szyprowski m.szyprow...@samsung.com wrote: Use recently introduced of_reserved_mem_device_init() function to automatically assign respective reserved memory region to the newly created platform and amba device. Signed-off-by: Marek Szyprowski

Re: [PATCH 02/14] clk: Create of_clk_shared_by_cpus()

2014-07-28 Thread Grant Likely
On Tue, 1 Jul 2014 22:02:31 +0530, Viresh Kumar viresh.ku...@linaro.org wrote: Create a new routine of_clk_shared_by_cpus() that finds if clock lines are shared between two CPUs. This is verified by comparing clocks property from CPU's DT node. Returns 1 if clock line is shared between

Re: [RFC PATCH 2/2] of/clk: use clkops-clocks to specify clocks handled by clock_ops domain

2014-07-28 Thread Grant Likely
On Mon, Jul 28, 2014 at 11:47 AM, Grygorii Strashko grygorii.stras...@ti.com wrote: Hi Grant. On 07/28/2014 05:05 PM, Grant Likely wrote: On Thu, 12 Jun 2014 19:53:43 +0300, Grygorii Strashko grygorii.stras...@ti.com wrote: Use clkops-clocks property to specify clocks handled by clock_ops

Re: [PATCH 00/10] of: Core devicetree changeset support

2014-07-27 Thread Grant Likely
On Fri, 25 Jul 2014 13:10:15 -0500, Nathan Fontenot wrote: > On 07/23/2014 06:44 PM, Grant Likely wrote: > > Hi all, > > > > This is a rollup of all the patches that I queued up today for > > linux-next for the devicetree changeset and overlay work. I'm reposting >

Re: [PATCH 00/10] of: Core devicetree changeset support

2014-07-27 Thread Grant Likely
On Fri, 25 Jul 2014 13:10:15 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 07/23/2014 06:44 PM, Grant Likely wrote: Hi all, This is a rollup of all the patches that I queued up today for linux-next for the devicetree changeset and overlay work. I'm reposting these patches

Re: ARC fails to boot on linux-next of 20140711

2014-07-26 Thread Grant Likely
On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta wrote: > Hi Rob, > > On Friday 25 July 2014 07:45 PM, Rob Herring wrote: > > On Fri, Jul 25, 2014 at 6:02 AM, Vineet Gupta > > wrote: > >> > Hi Grant, > >> > > >> > linux-next has a series for arc_uart (via tty tree) which converts it to > >> >

Re: ARC fails to boot on linux-next of 20140711

2014-07-26 Thread Grant Likely
On Sat, 26 Jul 2014 06:52:36 +, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi Rob, On Friday 25 July 2014 07:45 PM, Rob Herring wrote: On Fri, Jul 25, 2014 at 6:02 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi Grant, linux-next has a series for arc_uart (via tty

Re: ARC fails to boot on linux-next of 20140711

2014-07-25 Thread Grant Likely
On Fri, 25 Jul 2014 09:15:22 -0500, Rob Herring wrote: > On Fri, Jul 25, 2014 at 6:02 AM, Vineet Gupta > wrote: > > Hi Grant, > > > > linux-next has a series for arc_uart (via tty tree) which converts it to > > generic > > earlycon and specifies console via /chosen/stdout-path vs. an explicit

Re: ARC fails to boot on linux-next of 20140711

2014-07-25 Thread Grant Likely
On Fri, 25 Jul 2014 09:15:22 -0500, Rob Herring robherri...@gmail.com wrote: On Fri, Jul 25, 2014 at 6:02 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi Grant, linux-next has a series for arc_uart (via tty tree) which converts it to generic earlycon and specifies console via

[PATCH 02/10] of: rename of_aliases_mutex to just of_mutex

2014-07-23 Thread Grant Likely
From: Pantelis Antoniou We're overloading usage of of_aliases_mutex for sysfs changes, so rename to something that is more generic. Signed-off-by: Pantelis Antoniou Signed-off-by: Grant Likely --- drivers/of/base.c | 19 +-- drivers/of/device.c | 4 ++-- drivers

[PATCH 04/10] OF: Utility helper functions for dynamic nodes

2014-07-23 Thread Grant Likely
icu Signed-off-by: Pantelis Antoniou [glikely: Added unittest for of_copy_property and dropped fine-grained allocations] [glikely: removed name, type and phandle arguments from __of_node_alloc] Signed-off-by: Grant Likely --- drivers/of/dynamic.c|

[PATCH 00/10] of: Core devicetree changeset support

2014-07-23 Thread Grant Likely
to pseries (and I can't get the QEMU pseries model to boot reliably) Nathan/Tyrel, can you give it a spin? The changes can be found in my git tree: git://git.secretlab.ca/git/linux devicetree/next Grant Likely (8): of/platform: Fix of_platform_device_destroy iteration of devices of: Move

[PATCH 06/10] of: Make devicetree sysfs update functions consistent.

2014-07-23 Thread Grant Likely
prototypes into of_private.h so they are accessible to the transaction code. Signed-off-by: Pantelis Antoniou [grant.likely: Changed suffix from _post to _sysfs to match existing code] [grant.likely: Reorganized to eliminate trivial wrappers] Signed-off-by: Grant Likely --- drivers/of/base.c

[PATCH 03/10] of: Move CONFIG_OF_DYNAMIC code into a separate file

2014-07-23 Thread Grant Likely
and remove nodes. v2: Moved of_node_release() into dynamic.c Signed-off-by: Grant Likely Signed-off-by: Pantelis Antoniou Cc: Rob Herring --- drivers/of/Makefile | 1 + drivers/of/base.c | 230 +--- drivers/of/dynamic.c| 216

[PATCH 05/10] of: Create unlocked versions of node and property add/remove functions

2014-07-23 Thread Grant Likely
are: __of_add_property(), __of_remove_property(), __of_update_property(), __of_attach_node() and __of_detach_node(). Signed-off-by: Pantelis Antoniou [Remove unnecessary diff hunks and rewrite commit text] Signed-off-by: Grant Likely --- drivers/of/base.c | 91

[PATCH 08/10] of: Move dynamic node fixups out of powerpc and into common code

2014-07-23 Thread Grant Likely
with notifiers that modify the node. Signed-off-by: Grant Likely Cc: Nathan Fontenot Cc: Benjamin Herrenschmidt --- arch/powerpc/kernel/prom.c | 70 -- drivers/of/base.c | 4 +-- drivers/of/dynamic.c | 13 + drivers/of/of_private.h

[PATCH 07/10] of: Make sure attached nodes don't carry along extra children

2014-07-23 Thread Grant Likely
The child pointer does not get cleared when attaching new nodes which could cause the tree to be inconsistent. Clear the child pointer in __of_attach_node() to be absolutely sure that the structure remains in a consistent layout. Signed-off-by: Grant Likely --- drivers/of/dynamic.c | 1 + 1

[PATCH 10/10] of: Transactional DT support.

2014-07-23 Thread Grant Likely
. An applied transaction can be rolled-back at any time. Documentation is in Documentation/devicetree/changesets.txt Signed-off-by: Pantelis Antoniou [glikely: Removed device notifiers and reworked to be more consistent] Signed-off-by: Grant Likely --- Documentation/devicetree

[PATCH 09/10] of: Reorder device tree changes and notifiers

2014-07-23 Thread Grant Likely
to the tree. Signed-off-by: Grant Likely Cc: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 2 +- drivers/crypto/nx/nx-842.c | 30 +++-- drivers/of/base.c | 21 - drivers/of/dynamic.c

[PATCH 01/10] of/platform: Fix of_platform_device_destroy iteration of devices

2014-07-23 Thread Grant Likely
, and drivers are responsible for getting rid of any child devices that weren't created by of_platform_populate. Signed-off-by: Grant Likely Signed-off-by: Pantelis Antoniou --- drivers/of/platform.c | 32 +--- include/linux/of.h | 1 + include/linux

[PATCH 01/10] of/platform: Fix of_platform_device_destroy iteration of devices

2014-07-23 Thread Grant Likely
, and drivers are responsible for getting rid of any child devices that weren't created by of_platform_populate. Signed-off-by: Grant Likely grant.lik...@linaro.org Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/of/platform.c | 32

[PATCH 09/10] of: Reorder device tree changes and notifiers

2014-07-23 Thread Grant Likely
to the tree. Signed-off-by: Grant Likely grant.lik...@linaro.org Cc: Nathan Fontenot nf...@austin.ibm.com --- arch/powerpc/platforms/pseries/hotplug-memory.c | 2 +- drivers/crypto/nx/nx-842.c | 30 +++-- drivers/of/base.c

[PATCH 10/10] of: Transactional DT support.

2014-07-23 Thread Grant Likely
-by: Grant Likely grant.lik...@linaro.org --- Documentation/devicetree/changesets.txt | 40 drivers/of/dynamic.c| 344 drivers/of/of_private.h | 9 + drivers/of/selftest.c | 51 + drivers/of/testcase

[PATCH 07/10] of: Make sure attached nodes don't carry along extra children

2014-07-23 Thread Grant Likely
The child pointer does not get cleared when attaching new nodes which could cause the tree to be inconsistent. Clear the child pointer in __of_attach_node() to be absolutely sure that the structure remains in a consistent layout. Signed-off-by: Grant Likely grant.lik...@linaro.org --- drivers

[PATCH 08/10] of: Move dynamic node fixups out of powerpc and into common code

2014-07-23 Thread Grant Likely
with notifiers that modify the node. Signed-off-by: Grant Likely grant.lik...@linaro.org Cc: Nathan Fontenot nf...@austin.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/kernel/prom.c | 70 -- drivers/of/base.c | 4

[PATCH 05/10] of: Create unlocked versions of node and property add/remove functions

2014-07-23 Thread Grant Likely
the lock. The new functions are: __of_add_property(), __of_remove_property(), __of_update_property(), __of_attach_node() and __of_detach_node(). Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com [Remove unnecessary diff hunks and rewrite commit text] Signed-off-by: Grant Likely

[PATCH 06/10] of: Make devicetree sysfs update functions consistent.

2014-07-23 Thread Grant Likely
prototypes into of_private.h so they are accessible to the transaction code. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com [grant.likely: Changed suffix from _post to _sysfs to match existing code] [grant.likely: Reorganized to eliminate trivial wrappers] Signed-off-by: Grant Likely

[PATCH 03/10] of: Move CONFIG_OF_DYNAMIC code into a separate file

2014-07-23 Thread Grant Likely
and remove nodes. v2: Moved of_node_release() into dynamic.c Signed-off-by: Grant Likely grant.lik...@linaro.org Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com Cc: Rob Herring robh...@kernel.org --- drivers/of/Makefile | 1 + drivers/of/base.c | 230

[PATCH 00/10] of: Core devicetree changeset support

2014-07-23 Thread Grant Likely
to pseries (and I can't get the QEMU pseries model to boot reliably) Nathan/Tyrel, can you give it a spin? The changes can be found in my git tree: git://git.secretlab.ca/git/linux devicetree/next Grant Likely (8): of/platform: Fix of_platform_device_destroy iteration of devices of: Move

[PATCH 04/10] OF: Utility helper functions for dynamic nodes

2014-07-23 Thread Grant Likely
-len == 0 by Ionut Nicu ioan.nicu@nsn.com Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com [glikely: Added unittest for of_copy_property and dropped fine-grained allocations] [glikely: removed name, type and phandle arguments from __of_node_alloc] Signed-off-by: Grant Likely

[PATCH 02/10] of: rename of_aliases_mutex to just of_mutex

2014-07-23 Thread Grant Likely
From: Pantelis Antoniou pantelis.anton...@konsulko.com We're overloading usage of of_aliases_mutex for sysfs changes, so rename to something that is more generic. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com Signed-off-by: Grant Likely grant.lik...@linaro.org --- drivers

Re: [PATCH] of: Use proper types for checking memory overflow

2014-07-10 Thread Grant Likely
On Tue, 8 Jul 2014 09:24:08 +0200 (CEST), Nicolas Pitre wrote: > On Mon, 7 Jul 2014, Laura Abbott wrote: > > > Commit a67a6ed15513541579d38bcbd127e7be170710e5 > > (of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch) > > corrected early_init_dt_add_memory_arch to account for

Re: [PATCH] of: Use proper types for checking memory overflow

2014-07-10 Thread Grant Likely
On Tue, 8 Jul 2014 09:24:08 +0200 (CEST), Nicolas Pitre nicolas.pi...@linaro.org wrote: On Mon, 7 Jul 2014, Laura Abbott wrote: Commit a67a6ed15513541579d38bcbd127e7be170710e5 (of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch) corrected early_init_dt_add_memory_arch

Re: [PATCH v2] declance: Fix 64-bit compilation warnings

2014-07-07 Thread Grant Likely
On Sat, 05 Jul 2014 11:31:39 -0700, Joe Perches wrote: > On Sat, 2014-07-05 at 19:20 +0100, Maciej W. Rozycki wrote: > > On Sat, 5 Jul 2014, Joe Perches wrote: > > > I don't think %#p is valid so it > > > shouldn't have been set by #. > > > > Huh? As recently as last Wednesday you pointed me

Re: [PATCH v2] declance: Fix 64-bit compilation warnings

2014-07-07 Thread Grant Likely
On Sat, 05 Jul 2014 11:31:39 -0700, Joe Perches j...@perches.com wrote: On Sat, 2014-07-05 at 19:20 +0100, Maciej W. Rozycki wrote: On Sat, 5 Jul 2014, Joe Perches wrote: I don't think %#p is valid so it shouldn't have been set by #. Huh? As recently as last Wednesday you pointed

Re: [GIT PULL] bug fix for devicetree memory parsing

2014-07-06 Thread Grant Likely
On Sun, Jul 6, 2014 at 8:24 PM, Linus Torvalds wrote: > On Sun, Jul 6, 2014 at 2:37 AM, Grant Likely wrote: >> >> Can you pull this bug fix into your tree please? > > I took it, but I think both your explanation and the patch itself is > actually crap. It may fix the i

[GIT PULL] bug fix for devicetree memory parsing

2014-07-06 Thread Grant Likely
Hi Linus, Can you pull this bug fix into your tree please? Thanks, g. The following changes since commit a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee: Linux 3.16-rc2 (2014-06-21 19:02:54 -1000) are available in the git repository at: git://git.secretlab.ca/git/linux tags/dt-for-linus for

[GIT PULL] bug fix for devicetree memory parsing

2014-07-06 Thread Grant Likely
Hi Linus, Can you pull this bug fix into your tree please? Thanks, g. The following changes since commit a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee: Linux 3.16-rc2 (2014-06-21 19:02:54 -1000) are available in the git repository at: git://git.secretlab.ca/git/linux tags/dt-for-linus for

Re: [GIT PULL] bug fix for devicetree memory parsing

2014-07-06 Thread Grant Likely
On Sun, Jul 6, 2014 at 8:24 PM, Linus Torvalds torva...@linux-foundation.org wrote: On Sun, Jul 6, 2014 at 2:37 AM, Grant Likely grant.lik...@linaro.org wrote: Can you pull this bug fix into your tree please? I took it, but I think both your explanation and the patch itself is actually crap

[PATCH] of/platform: Fix of_platform_device_destroy iteration of devices

2014-07-04 Thread Grant Likely
, and drivers are responsible for getting rid of any child devices that weren't created by of_platform_populate. Signed-off-by: Grant Likely Cc: Pawel Moll Cc: Pantelis Antoniou --- drivers/of/platform.c | 32 +--- include/linux/of.h | 1 + include

[PATCH] of/platform: Fix of_platform_device_destroy iteration of devices

2014-07-04 Thread Grant Likely
, and drivers are responsible for getting rid of any child devices that weren't created by of_platform_populate. Signed-off-by: Grant Likely grant.lik...@linaro.org Cc: Pawel Moll pawel.m...@arm.com Cc: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/of/platform.c | 32

Re: [PATCH] of: Transactional DT support.

2014-06-26 Thread Grant Likely
On Wed, 25 Jun 2014 12:20:16 -0700, Dan Malek wrote: > > On Jun 25, 2014, at 7:48 AM, Pantelis Antoniou > wrote: > > >>> +int of_transaction_commit(struct of_transaction *oft); > >> > >> How about of_transaction_apply()? > >> > > > > Sure. > > LOL! Panto, you give in too easily :) > >

Re: [PATCH] of: Transactional DT support.

2014-06-26 Thread Grant Likely
On Wed, 25 Jun 2014 12:20:16 -0700, Dan Malek dan.ma...@konsulko.com wrote: On Jun 25, 2014, at 7:48 AM, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: +int of_transaction_commit(struct of_transaction *oft); How about of_transaction_apply()? Sure. LOL! Panto, you

Re: [PATCH 5/6] OF: Utility helper functions for dynamic nodes

2014-06-25 Thread Grant Likely
On Tue, 24 Jun 2014 10:10:01 +0200, Alexander Sverdlin wrote: > Hi Pantelis, Grant, > > On 23/06/14 20:33, Ioan Nicu wrote: > >>> On 22/06/14 11:40, ext Pantelis Antoniou wrote: > Introduce helper functions for working with the live DT tree, > all of them related to dynamically

Re: [PATCH 5/6] OF: Utility helper functions for dynamic nodes

2014-06-25 Thread Grant Likely
On Tue, 24 Jun 2014 10:10:01 +0200, Alexander Sverdlin alexander.sverd...@nsn.com wrote: Hi Pantelis, Grant, On 23/06/14 20:33, Ioan Nicu wrote: On 22/06/14 11:40, ext Pantelis Antoniou wrote: Introduce helper functions for working with the live DT tree, all of them related to

Re: [PATCH 2/6] OF: Add [__]of_find_node_by_full_name

2014-06-24 Thread Grant Likely
On Mon, 23 Jun 2014 21:00:39 +0300, Pantelis Antoniou wrote: > Hi Guenter, > > On Jun 23, 2014, at 8:58 PM, Guenter Roeck wrote: > > > On 06/22/2014 02:40 AM, Pantelis Antoniou wrote: > >> __of_find_node_by_full_name recursively searches for a matching node > >> with the given full name

<    3   4   5   6   7   8   9   10   11   12   >