summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-03-02 12:47:57 +0100
committerStefan Roese <sr@denx.de>2022-05-02 07:28:25 +0200
commit72a9dd264c15e287ac5168d387cfa77710d22982 (patch)
tree7a3a421324ee035273bc1ac6f65c381dab508de5
parentd80276870d732d413447481f986d7ff63e5b764a (diff)
arm: mvebu: turris_omnia: Signal error when sata/pcie DT mode
Show error message when DT file does not contain sata or pcie node which should be explicitly disabled. This can happen when U-Boot code for finding those nodes is incomplete or when those DT nodes are in different unexpected location. In any case it is needed to know if DT not was not explicitly disabled as it could mean that combo slots where setup incorrectly. Signed-off-by: Pali Rohár <pali@kernel.org>
-rw-r--r--board/CZ.NIC/turris_omnia/turris_omnia.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index bdf473a31fc..1f69b3d166d 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -524,8 +524,10 @@ static void disable_sata_node(void *blob)
else
debug("Disabled SATA DT node\n");
- break;
+ return;
}
+
+ printf("Cannot find SATA DT node!\n");
}
static void disable_pcie_node(void *blob, int port)
@@ -553,6 +555,8 @@ static void disable_pcie_node(void *blob, int port)
return;
}
}
+
+ printf("Cannot find PCIe port %d DT node!\n", port);
}
static void fixup_msata_port_nodes(void *blob)