浏览代码

PCI: mvebu: Report full node name when reporting a DT error

If we have a missing required property, report the full node name rather
than a vague "PCIe DT node" statement.  This allows the exact node in error
to be identified immediately.

Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (Armada XP GP)
Tested-by: Andrew Lunn <andrew@lunn.ch> (Kirkwood DIR665)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Russell King 10 年之前
父节点
当前提交
2cdf4ed184
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/pci/host/pci-mvebu.c

+ 2 - 1
drivers/pci/host/pci-mvebu.c

@@ -987,7 +987,8 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
 		if (of_property_read_u32(child, "marvell,pcie-port",
 		if (of_property_read_u32(child, "marvell,pcie-port",
 					 &port->port)) {
 					 &port->port)) {
 			dev_warn(&pdev->dev,
 			dev_warn(&pdev->dev,
-				 "ignoring PCIe DT node, missing pcie-port property\n");
+				 "ignoring %s, missing pcie-port property\n",
+				 of_node_full_name(child));
 			continue;
 			continue;
 		}
 		}