Ignore phandle properties in /aliases
The 'alias_paths' check verifies that each property in /aliases is a valid path to another node. However this can cans false positives trees where the /aliases node has a phandle property, which isn't in this format but is allowed. In particular this situation can be common with trees dumped from some real OF systems (which typically generate a phandle for every node). Special case this to avoid the spurious error. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
95ce19c140
commit
60e0db3d65
1 changed files with 5 additions and 0 deletions
5
checks.c
5
checks.c
|
@ -691,6 +691,11 @@ static void check_alias_paths(struct check *c, struct dt_info *dti,
|
|||
return;
|
||||
|
||||
for_each_property(node, prop) {
|
||||
if (streq(prop->name, "phandle")
|
||||
|| streq(prop->name, "linux,phandle")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!prop->val.val || !get_node_by_path(dti->dt, prop->val.val)) {
|
||||
FAIL_PROP(c, dti, node, prop, "aliases property is not a valid node (%s)",
|
||||
prop->val.val);
|
||||
|
|
Loading…
Reference in a new issue