[lkml]   [2014]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RFC PATCH 0/3] Parse OF graph and create backlinks internally

while I'm eagerly awaiting the outcome of the current situation regarding the
"Move device tree graph parsing helpers to drivers/of" series, here is a draft
implementation that parses the whole device tree into a separate graph
structure, creating the backlinks internally. This way it doesn't matter to
the code in which direction the phandle links in the device tree are pointing.
The current code assumes a static device tree and doesn't handle runtime
changes at all.

I've also added two helpers to iterate over all ports of a device, and to
obtain a specific port by its id (as contained in the 'reg' property).

These patches are based directly on top of the previous series, which still
can be found at:
git:// topic/of-graph

Philipp Zabel (3):
of: Parse OF graph into graph structure
of: Add OF graph helper to get a specific port by id
of: Add OF graph helpers to iterate over ports

drivers/of/base.c | 476 +++++++++++++++++++++++++++++++++++++++--------
include/linux/of_graph.h | 31 +++
2 files changed, 430 insertions(+), 77 deletions(-)


 \ /
  Last update: 2014-03-19 16:41    [W:0.037 / U:16.208 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site