Re: [PATCH] OF: kobj node lifecycle fixes

2014-03-13 Thread Grant Likely
On Thu, 13 Mar 2014 08:30:37 +0200, Pantelis Antoniou wrote: > Hi Grant, > > On Mar 13, 2014, at 12:49 AM, Grant Likely wrote: > > Looks good; booted and tested overlays with no issues. Thanks. g. -- To unsubscribe from this list: send the line "unsubscribe linux-kern

[PATCH] OF: kobj node lifecycle fixes

2014-03-12 Thread Grant Likely
niou [grant.likely: moved of_node_init() calls, fixed up locking, and dropped __of_populate() hunks] Signed-off-by: Grant Likely --- I've reworked Pantelis' patch to work on my tree. Here's the result. I've already got this in my tree and will be pushing it out shortly. g.

Re: [PATCH v6 00/11] reserved-memory regions/CMA in devicetree, again

2014-03-11 Thread Grant Likely
lity > - added 'reusable' property to exmaple linux,cma node in documentation > - exclusive dma (dma_coherent) is used for only handling 'shared-dma-pool' > regions without 'reusable' property and CMA is used only for handling > 'shared-dma-pool' re

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-10 Thread Grant Likely
On Mon, 10 Mar 2014 14:52:53 +0100, Laurent Pinchart wrote: > On Monday 10 March 2014 12:18:20 Tomi Valkeinen wrote: > > On 08/03/14 13:41, Grant Likely wrote: > > >> Ok. If we go for single directional link, the question is then: which > > >> way? And is the di

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-10 Thread Grant Likely
On Mon, 10 Mar 2014 12:18:20 +0200, Tomi Valkeinen wrote: > On 08/03/14 13:41, Grant Likely wrote: > > >> Ok. If we go for single directional link, the question is then: which > >> way? And is the direction different for display and camera, which are > >>

Re: [GIT PULL] Move device tree graph parsing helpers to drivers/of

2014-03-10 Thread Grant Likely
On Mon, 10 Mar 2014 10:26:30 -0300, Mauro Carvalho Chehab wrote: > Em Fri, 07 Mar 2014 18:23:30 + > Grant Likely escreveu: > > > On Thu, 06 Mar 2014 18:13:20 +0100, Philipp Zabel > > wrote: > > > Hi Mauro, Russell, > > > > > > I hav

Re: [PATCH v4 3/3] Documentation: of: Document graph bindings

2014-03-08 Thread Grant Likely
On Sat, 8 Mar 2014 11:35:38 +0200, Tomi Valkeinen wrote: > On 07/03/14 20:11, Grant Likely wrote: > > >>> Any board not using that port can just leave the endpoint disconnected. > >> > >> Hmm I see. I'm against that. > >> > >> I think

Re: [PATCH v4 1/3] [media] of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-08 Thread Grant Likely
On Sat, 8 Mar 2014 12:46:05 +0200, Tomi Valkeinen wrote: > On 07/03/14 19:18, Grant Likely wrote: > > > From a pattern perspective I have no problem with that From an > > individual driver binding perspective that is just dumb! It's fine for > > the port

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-08 Thread Grant Likely
On Sat, 8 Mar 2014 12:33:12 +0200, Tomi Valkeinen wrote: > On 07/03/14 19:05, Grant Likely wrote: > > On Wed, 26 Feb 2014 15:48:49 +0100, Philipp Zabel > > wrote: > >> Hi Grant, > >> > >> thank you for the comments. > > > > Hi Philipp,

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-08 Thread Grant Likely
On Thu, 27 Feb 2014 17:43:15 +0100, Jean-Jacques Hiblot wrote: > Hi Grant, > > 2014-02-21 17:22 GMT+01:00 Jean-Jacques Hiblot : > > Hi Grygorii, > > > > 2014-02-21 16:37 GMT+01:00 Strashko, Grygorii : > >> Hi Jean-Jacques, > >> > >> Sorry for top posting. > >> > >> As I know, there have been se

Re: [PATCH v2] dt: platform driver: Fill the resources before probe and defer if needed

2014-03-08 Thread Grant Likely
On Fri, 21 Feb 2014 14:18:40 +0100, Jean-Jacques Hiblot wrote: > The goal of this patch is to allow drivers to be probed even if at the time of > the DT parsing some of their ressources are not available yet. Hi Jean-Jacques [...] > +int of_platform_device_prepare(struct platform_device *dev) >

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-07 Thread Grant Likely
On Thu, 27 Feb 2014 10:36:36 +0200, Tomi Valkeinen wrote: > On 26/02/14 16:48, Philipp Zabel wrote: > > >> I would like the document to acknowledge the difference from the > >> phandle+args pattern used elsewhere and a description of when it would > >> be appropriate to use this instead of a sim

Re: [PATCH v4 3/3] Documentation: of: Document graph bindings

2014-03-07 Thread Grant Likely
On Wed, 26 Feb 2014 16:50:52 +0200, Tomi Valkeinen wrote: > On 26/02/14 16:57, Philipp Zabel wrote: > > Hi Tomi, > > > > Am Mittwoch, den 26.02.2014, 15:14 +0200 schrieb Tomi Valkeinen: > >> On 25/02/14 16:58, Philipp Zabel wrote: > >> > >>> +Optional endpoint properties > >>> +-

Re: [PATCH] MAINTAINERS: add maintainers for arm64 acpi

2014-03-07 Thread Grant Likely
On Tue, 4 Mar 2014 23:50:44 +, Catalin Marinas wrote: > On Tue, Mar 04, 2014 at 07:03:18PM +, Graeme Gregory wrote: > > On Tue, Mar 04, 2014 at 10:23:16AM +, Catalin Marinas wrote: > > > On Tue, Mar 04, 2014 at 02:15:45AM +, Graeme Gregory wrote: > > > > +ACPI ARM64 > > > > > > T

Re: [PATCH v6 6/8] of: Implement simplified graph binding for single port devices

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 10:20:40 +0100, Philipp Zabel wrote: > For simple devices with only one port, it can be made implicit. > The endpoint node can be a direct child of the device node. > > Signed-off-by: Philipp Zabel Ergh... I think this is too loosely defined. The caller really should be exp

Re: [PATCH v4 3/3] Documentation: of: Document graph bindings

2014-03-07 Thread Grant Likely
On Wed, 26 Feb 2014 15:14:17 +0200, Tomi Valkeinen wrote: > On 25/02/14 16:58, Philipp Zabel wrote: > > > +Optional endpoint properties > > + > > + > > +- remote-endpoint: phandle to an 'endpoint' subnode of a remote device > > node. > > Why is that optional? What u

Re: [PATCH v6 0/8] Move device tree graph parsing helpers to drivers/of

2014-03-07 Thread Grant Likely
On Thu, 06 Mar 2014 12:17:21 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 06 Mar 2014 14:16:57 + > Russell King - ARM Linux escreveu: > > > On Wed, Mar 05, 2014 at 03:42:34PM +0100, Philipp Zabel wrote: > > > Am Mittwoch, den 05.03.2014, 13:35 +0200 schrieb Tomi Valkeinen: > > > > Hi, > >

Re: [PATCH v6 4/8] of: Reduce indentation in of_graph_get_next_endpoint

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 10:20:38 +0100, Philipp Zabel wrote: > A 'return endpoint;' at the end of the (!prev) case allows to > reduce the indentation level of the (prev) case. > > Signed-off-by: Philipp Zabel Acked-by: Grant Likely > ---

Re: [PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 11:48:57 +, Liviu Dudau wrote: > Several platforms use a rather generic version of parsing > the device tree to find the host bridge ranges. Move the common code > into the generic PCI code and use it to create a pci_host_bridge > structure that can be used by arch code. >

Re: [PATCH v2 4/4] pci: Add support for creating a generic host_bridge from device tree

2014-03-07 Thread Grant Likely
On Thu, 27 Feb 2014 14:38:32 +0100, Arnd Bergmann wrote: > On Thursday 27 February 2014 13:06:42 Liviu Dudau wrote: > > Several platforms use a rather generic version of parsing > > the device tree to find the host bridge ranges. Move the common code > > into the generic PCI code and use it to cre

Re: [PATCH v6 1/8] [media] of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 10:20:35 +0100, Philipp Zabel wrote: > This patch moves the parsing helpers used to parse connected graphs > in the device tree, like the video interface bindings documented in > Documentation/devicetree/bindings/media/video-interfaces.txt, from > drivers/media/v4l2-core/v4l2-

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-07 Thread Grant Likely
+ schrieb Grant Likely: > > On Mon, 24 Feb 2014 18:36:29 +0100, Philipp Zabel > > wrote: > > > Am Dienstag, den 18.02.2014, 16:26 + schrieb Grant Likely: > > > > > > > > > > You can find it under > > > > > Documentation/

Re: [PATCH v6 4/6] pci: Introduce a domain number for pci_host_bridge.

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 11:48:55 +, Liviu Dudau wrote: > Make it easier to discover the domain number of a bus by storing > the number in pci_host_bridge for the root bus. Several architectures > have their own way of storing this information, so it makes sense > to try to unify the code. While at

Re: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 11:48:53 +, Liviu Dudau wrote: > The ranges property for a host bridge controller in DT describes > the mapping between the PCI bus address and the CPU physical address. > The resources framework however expects that the IO resources start > at a pseudo "port" address 0 (ze

Re: [PATCH v6 1/6] pci: Introduce pci_register_io_range() helper function.

2014-03-07 Thread Grant Likely
gt; Introduce a pci_register_io_range() helper function that can be used > by the architecture code to keep track of the io ranges described by the > PCI bindings. > > Signed-off-by: Liviu Dudau > Tested-by: Tanmay Inamdar Acked-by: Grant Likely > --- > drivers/of/addres

Re: [PATCH v6 5/8] [media] of: move common endpoint parsing to drivers/of

2014-03-07 Thread Grant Likely
gt; node and remote endpoint phandle. of_graph_parse_endpoint parses those > properties and is used by v4l2_of_parse_endpoint, which just adds the > V4L2 MBUS information to the containing v4l2_of_endpoint structure. > > Signed-off-by: Philipp Zabel Seems okay. Acked-by: Grant Likely

Re: [PATCH v6 3/6] pci: Create pci_host_bridge before its associated bus in pci_create_root_bus.

2014-03-07 Thread Grant Likely
reason. Revert the order of > creation as we are going to depend on the pci_host_bridge structure to > retrieve the > domain number of the root bus. > > Signed-off-by: Liviu Dudau > Tested-by: Tanmay Inamdar Acked-by: Grant Likely > --- > drivers/pci/probe.c | 36 ++

Re: [PATCH v6 3/8] of: Warn if of_graph_get_next_endpoint is called with the root node

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 10:20:37 +0100, Philipp Zabel wrote: > If of_graph_get_next_endpoint is given a parentless node instead of an > endpoint node, it is clearly a bug. > > Signed-off-by: Philipp Zabel Acked-by: Grant Likely > --- > Changes since v5: > - Added parentles

Re: [GIT PULL] Move device tree graph parsing helpers to drivers/of

2014-03-07 Thread Grant Likely
On Thu, 06 Mar 2014 18:13:20 +0100, Philipp Zabel wrote: > Hi Mauro, Russell, > > I have temporarily removed the simplified bindings at Sylwester's > request and updated the branch with the acks. The following changes > since commit 0414855fdc4a40da05221fc6062cccbc0c30f169: > > Linux 3.14-rc5

Re: [PATCH v6 0/8] Move device tree graph parsing helpers to drivers/of

2014-03-07 Thread Grant Likely
On Thu, 6 Mar 2014 15:50:18 +, Russell King - ARM Linux wrote: > On Thu, Mar 06, 2014 at 04:39:39PM +0100, Philipp Zabel wrote: > > Am Donnerstag, den 06.03.2014, 15:24 + schrieb Russell King - ARM > > Linux: > > > On Wed, Mar 05, 2014 at 10:20:34AM +0100, Philipp Zabel wrote: > > > > thi

Re: [PATCH v6 2/8] Documentation: of: Document graph bindings

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 10:20:36 +0100, Philipp Zabel wrote: > The device tree graph bindings as used by V4L2 and documented in > Documentation/device-tree/bindings/media/video-interfaces.txt contain > generic parts that are not media specific but could be useful for any > subsystem with data flow be

Re: [PATCH v4 1/3] [media] of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-03-07 Thread Grant Likely
On Wed, 26 Feb 2014 16:24:57 +0100, Philipp Zabel wrote: > Hi Grant, > > Am Mittwoch, den 26.02.2014, 11:37 + schrieb Grant Likely: > [...] > > > drivers/media/v4l2-core/v4l2-of.c | 117 > > > -- > > > drivers/of/M

Re: [PATCH] MAINTAINERS: add maintainers for arm64 acpi

2014-03-04 Thread Grant Likely
On Tue, Mar 4, 2014 at 7:15 PM, Will Deacon wrote: > On Tue, Mar 04, 2014 at 10:59:46AM +0000, Grant Likely wrote: >> I agree with merging it with the rest of the series, but comparing it >> to a blank cheque is not appropriate. Merely having an entry in >> MAINTAINERS doesn

Re: [PATCH] MAINTAINERS: add maintainers for arm64 acpi

2014-03-04 Thread Grant Likely
ing it to a blank cheque is not appropriate. Merely having an entry in MAINTAINERS doesn't immediately confer trust or ability to merge code, but it does tell people who to talk to when looking at ACPI on ARM. You can bet that neither Linus, Len or Rafael will merge ARM ACPI trees from them i

Re: [PATCHv2 2/2] of: fix of_update_property()

2014-03-04 Thread Grant Likely
On Wed, 22 Jan 2014 13:57:40 +0800, Xiubo Li wrote: > The of_update_property() is intented to update a property in a node > and if the property does not exist, will add it. > > The second search of the property is possibly won't be found, that > maybe removed by other thread just before the secon

Re: [PATCH v5 06/11] drivers: of: initialize and assign reserved memory to newly created devices

2014-03-02 Thread Grant Likely
On Thu, 27 Feb 2014 11:10:44 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-26 13:14, Grant Likely wrote: > > On Fri, 21 Feb 2014 13:25:22 +0100, Marek Szyprowski > > wrote: > > > Use recently introduced of_reserved_mem_device_init() function to > &g

Re: [PATCH v6 02/11] drivers: of: add initialization code for static reserved memory

2014-03-02 Thread Grant Likely
blocks). Typically, all this happens before device tree > structures are unflattened, so we need to get reserved memory layout > directly from fdt. > > Based on previous code provided by Josh Cartwright > > Signed-off-by: Marek Szyprowski > Acked-by: Grant Likely Ap

Re: [PATCH v6 04/11] drivers: of: add support for custom reserved memory drivers

2014-03-02 Thread Grant Likely
On Fri, 28 Feb 2014 14:42:49 +0100, Marek Szyprowski wrote: > Add support for custom reserved memory drivers. Call their init() function > for each reserved region and prepare for using operations provided by them > with by the reserved_mem->ops array. > > Based on previous code provided by Josh

Re: [PATCH v6 01/11] of: document bindings for reserved-memory nodes

2014-03-02 Thread Grant Likely
On Fri, 28 Feb 2014 14:42:46 +0100, Marek Szyprowski wrote: > From: Grant Likely > > Reserved memory nodes allow for the reservation of static (fixed > address) regions, or dynamically allocated regions for a specific > purpose. > > Signed-off-by: Grant Likely >

Re: [PATCH v5 01/11] of: document bindings for reserved-memory nodes

2014-03-02 Thread Grant Likely
On Fri, 28 Feb 2014 10:54:14 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-26 12:51, Grant Likely wrote: > > On Fri, 21 Feb 2014 13:25:17 +0100, Marek Szyprowski > > wrote: > > > From: Grant Likely > > > > > > Reserved memory

Re: [PATCH v6 05/11] drivers: of: add automated assignment of reserved regions to client devices

2014-03-02 Thread Grant Likely
On Fri, 28 Feb 2014 14:42:50 +0100, 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 clean

Re: [PATCH v6 03/11] drivers: of: add initialization code for dynamic reserved memory

2014-03-02 Thread Grant Likely
> Based on previous code provided by Josh Cartwright > > Signed-off-by: Marek Szyprowski > Acked-by: Grant Likely Applied, thanks. g. > --- > drivers/of/Kconfig |6 ++ > drivers/of/Makefile |1 + > drivers/of/fdt.c

Re: [PATCH v5 06/11] drivers: of: initialize and assign reserved memory to newly created devices

2014-02-26 Thread Grant Likely
On Fri, 21 Feb 2014 13:25:22 +0100, 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 wary on this patch.

Re: [PATCH v5 03/11] drivers: of: add initialization code for dynamic reserved memory

2014-02-26 Thread Grant Likely
> Based on previous code provided by Josh Cartwright > > Signed-off-by: Marek Szyprowski Acked-by: Grant Likely > --- > drivers/of/Kconfig |6 ++ > drivers/of/Makefile |1 + > drivers/of/fdt.c

Re: [PATCH v5 02/11] drivers: of: add initialization code for static reserved memory

2014-02-26 Thread Grant Likely
if > > bool __init early_init_dt_scan(void *params) > diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h > index 2b77058a7335..8610ad8d77d2 100644 > --- a/include/linux/of_fdt.h > +++ b/include/linux/of_fdt.h > @@ -98,7 +98,10 @@ extern int early_init_dt_scan_chose

Re: [PATCH v5 01/11] of: document bindings for reserved-memory nodes

2014-02-26 Thread Grant Likely
On Fri, 21 Feb 2014 13:25:17 +0100, Marek Szyprowski wrote: > From: Grant Likely > > Reserved memory nodes allow for the reservation of static (fixed > address) regions, or dynamically allocated regions for a specific > purpose. > > Signed-off-by: Grant Likely >

Re: [PATCH v4 1/3] [media] of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-02-26 Thread Grant Likely
On Tue, 25 Feb 2014 15:58:22 +0100, Philipp Zabel wrote: > From: Philipp Zabel > > This patch moves the parsing helpers used to parse connected graphs > in the device tree, like the video interface bindings documented in > Documentation/devicetree/bindings/media/video-interfaces.txt, from > dri

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-02-26 Thread Grant Likely
On Mon, 24 Feb 2014 18:36:29 +0100, Philipp Zabel wrote: > Am Dienstag, den 18.02.2014, 16:26 + schrieb Grant Likely: > > > > > > You can find it under > > > Documentation/devicetree/bindings/media/video-interfaces.txt > > > > Okay, I think I&

[GIT PULL] Device tree bug fix on compatible order

2014-02-21 Thread Grant Likely
pull, but moving the test case data out of out of arch/arm so that it could be validated on other architectures was important. ---- Grant Likely (2): of: Move testcase FDT data into drivers/of of: Add self test for of_m

Re: [PATCH v4 1/7] drivers: of: add initialization code for reserved memory

2014-02-21 Thread Grant Likely
On Fri, 21 Feb 2014 12:00:44 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-20 15:01, Grant Likely wrote: > > On Thu, 20 Feb 2014 11:52:41 +0100, Marek Szyprowski > > wrote: > > > This patch adds device tree support for contiguous and reserved memory &

Re: [PATCH 0/2] Translate of PCI address without PCI enabled

2014-02-20 Thread Grant Likely
On Wed, 19 Feb 2014 21:50:28 -0300, Ezequiel Garcia wrote: > On Wed, Feb 19, 2014 at 11:14:54PM +0100, Gregory CLEMENT wrote: > > Hello, > > > > This patch set makes the use of the of PCI address translator less > > restrictive. At the end it will allow to use the mvebu_get_soc_id > > unconditio

Re: [PATCH] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-20 Thread Grant Likely
On Thu, 13 Feb 2014 10:57:09 +0100, Jean-Jacques Hiblot wrote: > The goal of this patch is to allow drivers to be probed even if at the time of > the DT parsing some of their ressources are not available yet. > > In the current situation, the resource of a platform device are filled from > the

Re: [PATCH v4 1/7] drivers: of: add initialization code for reserved memory

2014-02-20 Thread Grant Likely
On Thu, 20 Feb 2014 11:52:41 +0100, Marek Szyprowski wrote: > This patch adds device tree support for contiguous and reserved memory > regions defined in device tree. > > Large memory blocks can be reliably reserved only during early boot. > This must happen before the whole memory management su

Re: [PATCH v3 2/6] drivers: of: add initialization code for reserved memory

2014-02-20 Thread Grant Likely
On Wed, 19 Feb 2014 09:20:05 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-18 17:56, Grant Likely wrote: > > On Tue, 18 Feb 2014 14:37:57 +0100, Marek Szyprowski > > wrote: > > > This patch adds device tree support for contiguous and reserved memory &

Re: [PATCH v4 0/4] Bugfix for of_match_node ordering

2014-02-20 Thread Grant Likely
On Thu, 20 Feb 2014 18:12:40 +0800, Kevin Hao wrote: > On Thu, Feb 20, 2014 at 02:09:08PM +0530, Sachin Kamat wrote: > > Hi Grant, > > > > I observe the following boot failure with today's (next-20140220) linux-next > > tree on Exynos based boards with the default exynos_defconfig. > > Does this

Re: [PATCH v4 0/4] Bugfix for of_match_node ordering

2014-02-20 Thread Grant Likely
] [] (of_find_compatible_node) from > [] (exynos_firmware_init+0x18/0x7c) > [ 0.000000] [] (exynos_firmware_init) from [] > (setup_arch+0x860/0x898) > [0.00] [] (setup_arch) from [] > (start_kernel+0x80/0x3dc) > [0.00] [] (start_kernel) f

Re: [PATCH v4 2/4] of: reimplement the matching method for __of_match_node()

2014-02-19 Thread Grant Likely
On Wed, 19 Feb 2014 08:54:57 -0600, Rob Herring wrote: > On Wed, Feb 19, 2014 at 8:14 AM, Grant Likely wrote: > > From: Kevin Hao > > > > In the current implementation of __of_match_node(), it will compare > > each given match entry against all the node&#x

[PATCH v4 4/4] of: Add self test for of_match_node()

2014-02-19 Thread Grant Likely
of_device_id table. This code was written to verify the new of_match_node() implementation that is an earlier part of this series. Signed-off-by: Grant Likely Cc: Kevin Hao --- drivers/of/selftest.c | 67 +++ drivers/of/testcase-data

[PATCH v4 1/4] Revert "of: search the best compatible match first in __of_match_node()"

2014-02-19 Thread Grant Likely
From: Kevin Hao This reverts commit 06b29e76a74b2373e6f8b5a7938b3630b9ae98b2. As pointed out by Grant Likely, we should also take the type and name into account when searching the best compatible match. That means the match with compatible, type and name should be better than the match just with

[PATCH v4 0/4] Bugfix for of_match_node ordering

2014-02-19 Thread Grant Likely
reimplement the matching method for __of_match_node() Grant Likely (2): of: Move testcase FDT data into drivers/of of: Add self test for of_match_node() -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...

[PATCH v4 2/4] of: reimplement the matching method for __of_match_node()

2014-02-19 Thread Grant Likely
{.name = "name2", .type = "type1", }, {} }; Signed-off-by: Kevin Hao [grant.likely: added v4 changes] Signed-off-by: Grant Likely --- drivers/of/base.c | 108 +- 1 file changed, 74 i

[PATCH v4 3/4] of: Move testcase FDT data into drivers/of

2014-02-19 Thread Grant Likely
project would be to make the testcase code easier to execute. Signed-off-by: Grant Likely --- arch/arm/boot/dts/testcases/tests-interrupts.dtsi | 58 --- arch/arm/boot/dts/testcases/tests-phandle.dtsi| 39 --- arch/arm/boot/dts/testcases/tests.dtsi| 2

Re: [PATCH v3 2/4] of: reimplement the matching method for __of_match_node()

2014-02-19 Thread Grant Likely
6. general compatible && type > 7. general compatible && name > 8. general compatible > 9. type && name > 10. type > 11. name > > This is based on some pseudo-codes provided by Grant Likely. > > Signed-off-by: Kevin Hao > [gr

Re: [PATCH v3 2/4] of: reimplement the matching method for __of_match_node()

2014-02-19 Thread Grant Likely
6. general compatible && type > 7. general compatible && name > 8. general compatible > 9. type && name > 10. type > 11. name > > This is based on some pseudo-codes provided by Grant Likely. > > Signed-off-by: Kevin Hao > [gr

Re: [PATCH] dt: platform driver: Fill the resources before probe and defer if needed

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 12:22:05 -0800, Greg KH wrote: > On Thu, Feb 13, 2014 at 10:57:09AM +0100, Jean-Jacques Hiblot wrote: > > The goal of this patch is to allow drivers to be probed even if at the time > > of > > the DT parsing some of their ressources are not available yet. > > > > In the curre

[PATCH 3/4] of: Move testcase FDT data into drivers/of

2014-02-18 Thread Grant Likely
project would be to make the testcase code easier to execute. Signed-off-by: Grant Likely --- arch/arm/boot/dts/testcases/tests-interrupts.dtsi | 58 --- arch/arm/boot/dts/testcases/tests-phandle.dtsi| 39 --- arch/arm/boot/dts/testcases/tests.dtsi| 2

[PATCH 2/4] of: reimplement the matching method for __of_match_node()

2014-02-18 Thread Grant Likely
& name 10. type 11. name This is based on some pseudo-codes provided by Grant Likely. Signed-off-by: Kevin Hao --- drivers/of/base.c | 87 +++ 1 file changed, 68 insertions(+), 19 deletions(-) diff --git a/drivers/of/base.c b/drivers/of

[PATCH 4/4] of: Add self test for of_match_node()

2014-02-18 Thread Grant Likely
at all. It is unknown why this is, but it needs to be solved before this patch can be committed. (However, this is testing the new of_match_table implementation, which still does far better than the old implementation which gets the precedence completely wrong.) Signed-off-by: Grant Likely Cc:

[PATCH 1/4] Revert "of: search the best compatible match first in __of_match_node()"

2014-02-18 Thread Grant Likely
From: Kevin Hao This reverts commit 06b29e76a74b2373e6f8b5a7938b3630b9ae98b2. As pointed out by Grant Likely, we should also take the type and name into account when searching the best compatible match. That means the match with compatible, type and name should be better than the match just with

Bug fix and test matching method for of_match_node()

2014-02-18 Thread Grant Likely
This series fixes the matching order in of_match_node() and adds some test cases to make sure the ordering is working correctly. It mostly works, but there is one test case that fails. I haven't debugged yet whether the problem is of_match_node() or the testcase itself. -- To unsubscribe from this

Re: [PATCH] of_mdio: fix phy interrupt passing

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 09:40:39 +, Ben Dooks wrote: > On 18/02/14 09:30, Grant Likely wrote: > > On Mon, 17 Feb 2014 16:29:40 +, Ben Dooks > > wrote: > >> The of_mdiobus_register_phy() is not setting phy->irq this causing > >> some drivers to incorrect

Re: [PATCH v3 3/6] drivers: of: implement reserved-memory handling for dma

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 14:37:58 +0100, Marek Szyprowski wrote: > From: Josh Cartwright > > Add support for handling 'shared-dma-pool' reserved-memory nodes using > dma exclusive driver (dma_alloc_coherent()). > > Signed-off-by: Josh Cartwright > Signed-off-by: Marek Szyprowski > --- > drivers/

Re: [PATCH v3 2/6] drivers: of: add initialization code for reserved memory

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 14:37:57 +0100, Marek Szyprowski wrote: > This patch adds device tree support for contiguous and reserved memory > regions defined in device tree. > > Large memory blocks can be reliably reserved only during early boot. > This must happen before the whole memory management su

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 08:06:24 +0100, Sascha Hauer wrote: > Hi Grant, > > On Mon, Feb 17, 2014 at 06:14:51PM +0000, Grant Likely wrote: > > On Tue, 11 Feb 2014 07:56:33 -0600, Rob Herring > > wrote: > > > On Tue, Feb 11, 2014 at 5:45 AM, Philipp Zabel > >

Re: [PATCH v2] of_mdio: fix phy interrupt passing

2014-02-18 Thread Grant Likely
driver Micrel KSZ8041RNLI > > Signed-off-by: Ben Dooks Looks okay to me Reviewed-by: Grant Likely > > --- > Since v1: > - Updated phy->irq setting code > - Deal with issue if mdio->irq array NULL > > Notes: > > It was discussed if thi

Re: [RFC/PATCH 0/3] Add devicetree scanning for randomness

2014-02-18 Thread Grant Likely
On Mon, 17 Feb 2014 17:13:07 +0100, Arnd Bergmann wrote: > On Monday 17 February 2014 15:54:19 Grant Likely wrote: > > On Wed, 12 Feb 2014 11:20:00 -0700, Jason Gunthorpe > > wrote: > > > On Wed, Feb 12, 2014 at 12:45:54PM -0500, Jason Cooper wrote: > > > >

Re: [PATCH] of_mdio: fix phy interrupt passing

2014-02-18 Thread Grant Likely
On Mon, 17 Feb 2014 16:29:40 +, Ben Dooks wrote: > The of_mdiobus_register_phy() is not setting phy->irq this causing > some drivers to incorrectly assume that the PHY does not have an > IRQ associated with it or install an interrupt handler for the > PHY. > > Simplify the code setting irq an

Re: [PATCH] of: Turn of_match_node into a static inline when CONFIG_OF isn't set

2014-02-17 Thread Grant Likely
On Tue, 11 Feb 2014 10:48:26 -0600, Josh Cartwright wrote: > On Tue, Feb 11, 2014 at 03:55:35PM +0100, Laurent Pinchart wrote: > > Hi Josh, > > > > On Tuesday 11 February 2014 08:41:08 Josh Cartwright wrote: > > > On Tue, Feb 11, 2014 at 01:36:51PM +0100, Laurent Pinchart wrote: > > > > when CON

Re: [PATCH] of: Turn of_match_node into a static inline when CONFIG_OF isn't set

2014-02-17 Thread Grant Likely
On Tue, 11 Feb 2014 13:36:51 +0100, Laurent Pinchart wrote: > when CONFIG_OF is disabled of_match_node is defined as a macro that > evaluates to NULL. This breaks compilation of drivers that dereference > the function's return value directly. Fix it by turning the macro into a > static inline fun

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-02-17 Thread Grant Likely
On Tue, 11 Feb 2014 07:56:33 -0600, Rob Herring wrote: > On Tue, Feb 11, 2014 at 5:45 AM, Philipp Zabel wrote: > > From: Philipp Zabel > > > > This patch moves the parsing helpers used to parse connected graphs > > in the device tree, like the video interface bindings documented in > > Documenta

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-17 Thread Grant Likely
, Benjamin Herrenschmidt wrote: > > > > >On Tue, 2014-02-11 at 19:01 +, Grant Likely wrote: > > > > > > > except that the former IMHO better suits the definition of memory > > > > > > > region, which I see as a single contiguous range of m

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-17 Thread Grant Likely
On Tue, 11 Feb 2014 21:04:21 +0100, Tomasz Figa wrote: > > > On 11.02.2014 21:02, Benjamin Herrenschmidt wrote: > > On Tue, 2014-02-11 at 19:01 +0000, Grant Likely wrote: > > > >>> except that the former IMHO better suits the definition of memory > >>&g

Re: [RFC PATCH v2 03/14] of: mtd: add documentation for nand-ecc-level property

2014-02-17 Thread Grant Likely
> On 05/02/2014 12:15, Grant Likely wrote: >> > On Wed, 29 Jan 2014 14:53:32 -0300, Ezequiel Garcia >> > wrote: > [..] >> >> >> >> Maybe we can discuss about it now? >> >> >> >>nand-ecc-strength : integer ECC required stren

Re: [RFC/PATCH 0/3] Add devicetree scanning for randomness

2014-02-17 Thread Grant Likely
On Wed, 12 Feb 2014 11:20:00 -0700, Jason Gunthorpe wrote: > On Wed, Feb 12, 2014 at 12:45:54PM -0500, Jason Cooper wrote: > > > The bootloader would then load this file into ram, and pass the > > address/size to the kernel either via dt, or commandline. kaslr (run in > > the decompressor) woul

Re: [RFC/PATCH 2/3] arm: Add ARCH_WANT_OF_RANDOMNESS

2014-02-12 Thread Grant Likely
On Tue, 11 Feb 2014 17:33:24 -0800, Laura Abbott wrote: > The stack canary for ARM is currently the same across reboots > due to lack of randomness early enough. Add ARCH_WANT_OF_RANDOMNESS > to allow devices to add whatever randomness they need. > > Signed-off-by: Laura Abbott Do you have a dr

Re: [RFC/PATCH 1/3] of: Add early randomness hooks

2014-02-12 Thread Grant Likely
On Tue, 11 Feb 2014 17:33:23 -0800, Laura Abbott wrote: > Until randomness is added to the kernel's pools, random > numbers returned may not be truly 'random'. Randomness comes > from a variety of sources in the kernel but much of the > randomness comes from device related initialization. This > m

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-11 Thread Grant Likely
On Tue, 11 Feb 2014 15:29:54 +0100, Tomasz Figa wrote: > > Yes, if only because it is an define usage of the reg property. If a > > devtree has multiple tuples in reg, then all of those tuples should be > > treated as reserved, even if the kernel doesn't know how to use them. > > > > I would not d

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-11 Thread Grant Likely
On Tue, 11 Feb 2014 12:45:50 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-05 12:05, Grant Likely wrote: > > On Tue, 04 Feb 2014 13:09:29 +0100, Marek Szyprowski > > wrote: > > > This patch adds device tree support for contiguous and reserved memory &

Re: [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-11 Thread Grant Likely
On Tue, 11 Feb 2014 11:52:42 +0100, Marek Szyprowski wrote: > > On 2014-02-10 22:59, Grant Likely wrote: > > On Thu, 06 Feb 2014 14:26:13 +0100, Marek Szyprowski > > wrote: > > > Hello, > > > > > > On 2014-02-05 11:15, Grant Likely wrote: >

Re: [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-10 Thread Grant Likely
On Thu, 06 Feb 2014 14:26:13 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-05 11:15, Grant Likely wrote: > > On Tue, 04 Feb 2014 13:09:32 +0100, Marek Szyprowski > > wrote: > > > Enable reserved memory initialization from device tree. > > > >

Re: [PATCHv2 2/2] arm: Get rid of meminfo

2014-02-10 Thread Grant Likely
On Wed, Feb 5, 2014 at 12:02 AM, Laura Abbott wrote: > memblock is now fully integrated into the kernel and is the prefered > method for tracking memory. Rather than reinvent the wheel with > meminfo, migrate to using memblock directly instead of meminfo as > an intermediate. > > Signed-off-by: La

Re: [RFC PATCH v2 03/14] of: mtd: add documentation for nand-ecc-level property

2014-02-05 Thread Grant Likely
On Wed, 29 Jan 2014 14:53:32 -0300, Ezequiel Garcia wrote: > On Wed, Jan 29, 2014 at 03:34:13PM +0100, Boris BREZILLON wrote: > > nand-ecc-level property statically defines NAND chip's ECC requirements. > > > > Signed-off-by: Boris BREZILLON > > --- > > Documentation/devicetree/bindings/mtd/na

Re: [PATCH v2 3/5] drivers: of: implement reserved-memory handling for cma

2014-02-05 Thread Grant Likely
On Tue, 04 Feb 2014 13:09:31 +0100, Marek Szyprowski wrote: > From: Josh Cartwright > > Add support for handling 'shared-dma-pool' reserved-memory nodes using > Contiguous Memory Allocator driver. > > Cc: Benjamin Herrenschmidt > Cc: Laura Abbott > Signed-off-by: Josh Cartwright > Signed-of

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-05 Thread Grant Likely
On Tue, 04 Feb 2014 13:09:29 +0100, Marek Szyprowski wrote: > This patch adds device tree support for contiguous and reserved memory > regions defined in device tree. > > Large memory blocks can be reliably reserved only during early boot. > This must happen before the whole memory management su

Re: [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-05 Thread Grant Likely
On Tue, 04 Feb 2014 13:09:32 +0100, Marek Szyprowski wrote: > Enable reserved memory initialization from device tree. > > Cc: Benjamin Herrenschmidt > Cc: Laura Abbott > Signed-off-by: Marek Szyprowski > --- > arch/arm/mm/init.c |3 +++ > 1 file changed, 3 insertions(+) > > diff --git a

Re: [PATCH v2 5/5] of: document bindings for reserved-memory nodes

2014-02-05 Thread Grant Likely
On Tue, 04 Feb 2014 13:09:33 +0100, Marek Szyprowski wrote: > From: Grant Likely > > Reserved memory nodes allow for the reservation of static (fixed > address) regions, or dynamically allocated regions for a specific > purpose. > > [joshc: Based on binding document p

Re: [PATCH V3] net/dt: Add support for overriding phy configuration from device tree

2014-02-05 Thread Grant Likely
On Tue, 4 Feb 2014 12:39:41 -0800, Florian Fainelli wrote: > 2014-01-17 Matthew Garrett : > > Some hardware may be broken in interesting and board-specific ways, such > > that various bits of functionality don't work. This patch provides a > > mechanism for overriding mii registers during init ba

Re: [PATCHv2 2/2] of: fix of_update_property()

2014-02-04 Thread Grant Likely
On Wed, 22 Jan 2014 13:57:40 +0800, Xiubo Li wrote: > The of_update_property() is intented to update a property in a node > and if the property does not exist, will add it. > > The second search of the property is possibly won't be found, that > maybe removed by other thread just before the secon

RE: [PATCH] of: fix of_update_property()

2014-02-04 Thread Grant Likely
On Mon, 20 Jan 2014 05:50:17 +, "li.xi...@freescale.com" wrote: > > Subject: Re: [PATCH] of: fix of_update_property() > > > > On Thu, Jan 16, 2014 at 10:46 PM, Xiubo Li wrote: > > > The of_update_property() is intent to update a property in a node > > > > s/intent/indended/ > > > > > and

Re: [PATCHv2 1/2] of: add __of_add_property() without lock operations

2014-02-04 Thread Grant Likely
On Wed, 22 Jan 2014 13:57:39 +0800, Xiubo Li wrote: > There two places will use the same code for adding one new property to > the DT node. Adding __of_add_property() and prepare for fixing > of_update_property()'s bug. > > Signed-off-by: Xiubo Li Applied, thanks. g. > --- > drivers/of/base.

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