Skip to content

Commit 5d8b1f9

Browse files
nathanlynchmpe
authored andcommitted
powerpc/pseries/mobility: Add pr_debug() for device tree changes
When investigating issues with partition migration or resource reassignments it is helpful to have a log of which nodes and properties in the device tree have changed. Use pr_debug() so it's easy to enable these at runtime with the dynamic debug facility. Signed-off-by: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 494a66f commit 5d8b1f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/powerpc/platforms/pseries/mobility.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ static int delete_dt_node(__be32 phandle)
6767
if (!dn)
6868
return -ENOENT;
6969

70+
pr_debug("removing node %pOFfp\n", dn);
71+
7072
dlpar_detach_node(dn);
7173
of_node_put(dn);
7274
return 0;
@@ -125,6 +127,7 @@ static int update_dt_property(struct device_node *dn, struct property **prop,
125127
}
126128

127129
if (!more) {
130+
pr_debug("updating node %pOF property %s\n", dn, name);
128131
of_update_property(dn, new_prop);
129132
*prop = NULL;
130133
}
@@ -243,6 +246,8 @@ static int add_dt_node(__be32 parent_phandle, __be32 drc_index)
243246
if (rc)
244247
dlpar_free_cc_nodes(dn);
245248

249+
pr_debug("added node %pOFfp\n", dn);
250+
246251
of_node_put(parent_dn);
247252
return rc;
248253
}

0 commit comments

Comments
 (0)