Re: [PATCH] checks: add graph binding checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Dec 12, 2017 at 9:59 AM, Rob Herring <robh@xxxxxxxxxx> wrote:
> Add checks for DT graph bindings. These checks check node names,
> unit-addresses and link connections on ports, port, and endpoint nodes.
>
> The graph nodes are matched by finding nodes named 'endpoint' or with a
> 'remote-endpoint' property. We can't match on 'ports' or 'port' nodes
> because those names are used for non-graph nodes. While the graph nodes
> aren't really buses, using the bus pointer to tag matched nodes is
> convenient.
>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> ---
>  checks.c | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 141 insertions(+)

[...]

> +static void check_graph_port(struct check *c, struct dt_info *dti,
> +                            struct node *node)
> +{
> +       struct property *prop;

Missed dropping this before sending.

> +
> +       if (node->bus != &graph_port_bus)
> +               return;
> +
> +       if (!strprefixeq(node->name, node->basenamelen, "port"))
> +               FAIL(c, dti, "graph port node '%s' name should be 'port'",
> +                    node->fullpath);
> +
> +       check_graph_reg(c, dti, node);
> +}
> +WARNING(graph_port, check_graph_port, NULL, &graph_nodes);
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux