Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB0B7EB64DA for ; Wed, 12 Jul 2023 18:58:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F1ECA86B85; Wed, 12 Jul 2023 20:58:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="oSdCcqT5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE49586B81; Wed, 12 Jul 2023 20:58:40 +0200 (CEST) Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 79D1486B85 for ; Wed, 12 Jul 2023 20:58:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-3458a08310aso29069095ab.3 for ; Wed, 12 Jul 2023 11:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689188317; x=1691780317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Dj4qFcCxipdPivbBX12A/8x1YbMCVX4WwFPqEfrNJfs=; b=oSdCcqT5Fa3I4JG1X8uVTw5r3L0z2V2Cv9xbgyfPoUjURIuGKacLCmlIFNyD5U0bOM JatUZCLdq1w6YND8PYjyvQJstbWIt4V3zJ1grWS7RmCOTG3MSTSWXHy5lCrdppnxpZ8x Sp3Rs27oFTJie6RTJ6sppS3ulrB+/n9UCqkf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689188317; x=1691780317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Dj4qFcCxipdPivbBX12A/8x1YbMCVX4WwFPqEfrNJfs=; b=N044Ku9FWON20XVeF8qetGniypq+1RCvVHsABZUHnXO2PCrZND4hj1/7Do8ftpFyUE K3DRBX4d1xIPGRmu23ikl7+sbk8dGIwqdB2YHojDRwMRyPWSJZ2Zmm2aYWfrrLzf5eq0 gEByN9e8UR0eG0uyWHU08A2ng5HGhzbputDTITz3m9y6rzjyM4wh71doicrlDM6pm5Pe 9xlHu6C5cGVmsck11tVQtX92FVucdJ1OSa0uQIFSqnHAj0ptf0FXSq3pnKoRUaVl4vzt fE63jKib6mMNsQO5X+zRPAxElsNTDqFBFiO1Vbwg5YNm70M0jd5TtT2nwSuFzDNyO/dJ cAIQ== X-Gm-Message-State: ABy/qLZD2S+lYyxO6w+2W8RfsrTWUA27/of5CF9zyfwklnrSor+EYm/D t+0ZClQvlHtOmSCxi9VFFlpDthWyTLo1Og5yaww= X-Google-Smtp-Source: APBJJlHB0YhW1f20YMKVIQKpplLNQrmr/JNJ2jBXzJdtHlRnbvnXcifKi0BTq2cCg41laMpoPOQM8A== X-Received: by 2002:a92:c806:0:b0:340:54f1:35dc with SMTP id v6-20020a92c806000000b0034054f135dcmr17640837iln.18.1689188317073; Wed, 12 Jul 2023 11:58:37 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:d225:574:66dc:3fdc]) by smtp.gmail.com with ESMTPSA id m14-20020a92c52e000000b00345cdb39ba4sm1487961ili.84.2023.07.12.11.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 11:58:36 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Fabio Estevam , Francesco Dolcini , Marcel Ziswiler , Simon Glass , Sahaj Sarup , Marek Vasut , Pavel Herrmann Subject: [PATCH] dm: core: Deal with __symbols__ in devicetree Date: Wed, 12 Jul 2023 12:58:30 -0600 Message-ID: <20230712185832.493460-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This node is 'special' and doesn't have a compatible string. Deal with it is as a special case. Reported-by: Sahaj Sarup Signed-off-by: Simon Glass --- drivers/core/root.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/core/root.c b/drivers/core/root.c index 6775fb0b657..bf163cc16a9 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -285,6 +286,9 @@ static int dm_scan_fdt_node(struct udevice *parent, ofnode parent_node, pr_debug(" - ignoring disabled device\n"); continue; } + if (spl_phase() > PHASE_SPL && + !strcmp("__symbols__", node_name)) + continue; err = lists_bind_fdt(parent, node, NULL, NULL, pre_reloc_only); if (err && !ret) { ret = err; -- 2.41.0.255.g8b1d071c50-goog