From patchwork Wed Jan 8 03:24:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thirupathaiah Annapureddy X-Patchwork-Id: 1219263 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="NlRJDgPc"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47svjv1Ywdz9sRf for ; Wed, 8 Jan 2020 14:24:19 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 61ED08079C; Wed, 8 Jan 2020 04:24:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="NlRJDgPc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D8873816DA; Wed, 8 Jan 2020 04:24:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id 6B74E803D4 for ; Wed, 8 Jan 2020 04:24:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thiruan@linux.microsoft.com Received: from thiru-la.corp.microsoft.com (unknown [167.220.2.31]) by linux.microsoft.com (Postfix) with ESMTPSA id 3DFA0200766E; Tue, 7 Jan 2020 19:24:09 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3DFA0200766E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1578453849; bh=prDnYC3JJGivYxHIjnevKD/T+hZsD4oo4wrJLIZ7LwM=; h=From:To:Cc:Subject:Date:From; b=NlRJDgPc508X9ne6rgQjXKs6r1b8t2TPO2Ml+wN5mj2OrwmDc6vYWuDjkO/bGT4VD x77LQXEe0A1Zk4OvkM2AAz0EENOI83DDoKmvneBszR6b8zBjA9Rwo+65pNHrfeO8Rm fJ0yddFvNkpaJrJFD1zM0CVtmMweRhl9zqnB8Vl4= From: Thirupathaiah Annapureddy To: u-boot@lists.denx.de Subject: [PATCH] Revert "dm: core: Scan "/firmware" node by default" Date: Tue, 7 Jan 2020 19:24:02 -0800 Message-Id: <20200108032402.26721-1-thiruan@linux.microsoft.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thiruan@linux.microsoft.com, thiruan@microsoft.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Subnodes under "/firmware" node are scanned twice in dm_scan_fdt_node and dm_extended_scan_fdt. This patch removes the double scanning. This reverts commit 1712ca21924bff678f19fd3141f435408d23bdbf. Signed-off-by: Thirupathaiah Annapureddy --- drivers/core/root.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/core/root.c b/drivers/core/root.c index e85643819e..daf7c61190 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -342,14 +342,8 @@ int dm_extended_scan_fdt(const void *blob, bool pre_reloc_only) } ret = dm_scan_fdt_ofnode_path("/clocks", pre_reloc_only); - if (ret) { - debug("scan for /clocks failed: %d\n", ret); - return ret; - } - - ret = dm_scan_fdt_ofnode_path("/firmware", pre_reloc_only); if (ret) - debug("scan for /firmware failed: %d\n", ret); + debug("scan for /clocks failed: %d\n", ret); return ret; }