From: Caleb Connolly Date: Fri, 11 Apr 2025 12:47:40 +0000 (+0200) Subject: mach-snapdragon: of_fixup: skip disabled USB nodes X-Git-Tag: v2025.07-rc2~44^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec337d03410a4a0b7402ae72968470cf63f0c55;p=pandora-u-boot.git mach-snapdragon: of_fixup: skip disabled USB nodes There's no need to waste time fixing up nodes that aren't used on this device. Skip them. Reviewed-by: Sumit Garg Reviewed-by: Neil Armstrong Tested-by: Sumit Garg Signed-off-by: Caleb Connolly --- diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c index 70399307bcb..dcd09ee7cac 100644 --- a/arch/arm/mach-snapdragon/of_fixup.c +++ b/arch/arm/mach-snapdragon/of_fixup.c @@ -108,7 +108,9 @@ static void fixup_usb_nodes(struct device_node *root) int ret; while ((glue_np = of_find_compatible_node(glue_np, NULL, "qcom,dwc3"))) { - ret = fixup_qcom_dwc3(glue_np); + if (!of_device_is_available(glue_np)) + continue; + ret = fixup_qcom_dwc3(root, glue_np); if (ret) log_warning("Failed to fixup node %s: %d\n", glue_np->name, ret); }