[PATCH 3/6] mach-snapdragon: of_fixup: skip disabled USB nodes
Caleb Connolly
caleb.connolly at linaro.org
Wed Apr 9 19:17:26 CEST 2025
There's no need to waste time fixing up nodes that aren't used on this
device. Skip them.
Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
---
arch/arm/mach-snapdragon/of_fixup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c
index d4e24059212c552de7fa7555d2ab8a1ea4fc4cb2..b39036e8e0890fdf834a0dfe6966ef3dd365f3d2 100644
--- a/arch/arm/mach-snapdragon/of_fixup.c
+++ b/arch/arm/mach-snapdragon/of_fixup.c
@@ -107,8 +107,10 @@ static void fixup_usb_nodes(void)
struct device_node *glue_np = NULL;
int ret;
while ((glue_np = of_find_compatible_node(glue_np, NULL, "qcom,dwc3"))) {
+ if (!of_device_is_available(glue_np))
+ continue;
ret = fixup_qcom_dwc3(glue_np);
if (ret)
log_warning("Failed to fixup node %s: %d\n", glue_np->name, ret);
}
--
2.49.0
More information about the U-Boot
mailing list