of: overlay: log the error cause on resolver failure
authorLuca Ceresoli <luca@lucaceresoli.net>
Fri, 28 Feb 2020 08:40:27 +0000 (09:40 +0100)
committerRob Herring <robh@kernel.org>
Mon, 2 Mar 2020 17:32:44 +0000 (11:32 -0600)
commita3958323f5fea2c400e40473f79f6816c0a2eb6b
tree9af9b7063cec46e43ac058010be9bc9ab12f53ae
parent485bb19d0b3eb3b679211800e3fd61e8b33ebb20
of: overlay: log the error cause on resolver failure

When a DT overlay has a node label that is not present in the live
devicetree symbols table, this error is printed:

  OF: resolver: overlay phandle fixup failed: -22
  create_overlay: Failed to create overlay (err=-22)

which does not help much in finding the node label that caused the problem
and fix the overlay source.

Add an error message with the name of the node label that caused the
error. The new output is:

  OF: resolver: node label 'gpio9' not found in live devicetree symbols table
  OF: resolver: overlay phandle fixup failed: -22
  create_overlay: Failed to create overlay (err=-22)

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/resolver.c