From patchwork Thu Sep 25 17:47:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 426 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822543; bh=4kC4D2yw05v9KwWOv3LCHJ42TCXLfwA4Y+fj+J3RfMw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=qGBlAF8gvYIhtMCPJg3/yXZveg9tww0ftcDJzIfQ/5L14ipnI3Ec/s+TQxzxZ19LX 5AjfWFkFgZLZratW2QNzbC9OHq/N669bxKZ39QMCLr12FStenp/CxuBvrhV8ChStyR xxPU3mIc2TdwAYDaPKlpRClZKNp5Rmqx4B92Emdphy2AktheOdGm9qdUEF1OOdnnaZ TeTyNyXnxzf+rhxk027lg0kPRWn4s/h1ifvU+7Cf3GYnzdZxPf5ZAsbAG+GZajUrBc +gJfrTsHKkYUwogSiogS65DPVjjtluOD7l9d8gevSf8uU1A6tkgvIQz1PMZLTtJjtv 2Fmj+6Sk4lpEw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4BF5567DA7 for ; Thu, 25 Sep 2025 11:49:03 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id GNO4nZ1S2bRl for ; Thu, 25 Sep 2025 11:49:03 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822543; bh=4kC4D2yw05v9KwWOv3LCHJ42TCXLfwA4Y+fj+J3RfMw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=qGBlAF8gvYIhtMCPJg3/yXZveg9tww0ftcDJzIfQ/5L14ipnI3Ec/s+TQxzxZ19LX 5AjfWFkFgZLZratW2QNzbC9OHq/N669bxKZ39QMCLr12FStenp/CxuBvrhV8ChStyR xxPU3mIc2TdwAYDaPKlpRClZKNp5Rmqx4B92Emdphy2AktheOdGm9qdUEF1OOdnnaZ TeTyNyXnxzf+rhxk027lg0kPRWn4s/h1ifvU+7Cf3GYnzdZxPf5ZAsbAG+GZajUrBc +gJfrTsHKkYUwogSiogS65DPVjjtluOD7l9d8gevSf8uU1A6tkgvIQz1PMZLTtJjtv 2Fmj+6Sk4lpEw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2C41467D90 for ; Thu, 25 Sep 2025 11:49:03 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822541; bh=UsgCSfIFFx5u0qW+w+8ycnJfZMb5H4E9weu7JS/RG4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LuTIRmqzJqB21hbpV55bCbWa1A6ckcNiO0URhM+dzDbuF3UXvwxHHry1vYwYeS7Hq venDeVb4Q6N/M37QlCBG/KGo8JriapNwNq5QXSJJORTYE6itFDuzENzE0Mq3b+BxC3 jE2ukdFOsc0MM5jkeCCyMj72m4o2/MklQ2+wf6zfk8KYRPK6Aq54xMJy1zjhCTknxw Yos/fIEMzPQU39ldZrkTt0/3rZmnORZMzDqU7IX3ZWGPvC+2LoRfA0cpeyUH8qZiQY lM5LG2zbYaBot5o90bKryyKXDszOp+2vl6D+fGTjH1dq2jFOCB7G6vc6VSl1Wv8nl+ eDN6f/F6v5FnQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 27A8D67CEF; Thu, 25 Sep 2025 11:49:01 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id yd0MgIhprRD9; Thu, 25 Sep 2025 11:49:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758822535; bh=pDA7jyWFsF/6321cNoBE8SlG/XOmPq9K22VVGJpqMZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RZ6HxCIhloLPm9eQ7qL34ufuHi+0Szn1AFm4IZf1j3OqfeqdJVEhcqEx9UWcd9Xlw txOmJvjVOqIEbbNRkZPNP8vLHFBOzUUOLNo2jRItF6e2Xfcw9UrOJHAfqv380+VL8e 1KgIgf/gJITrdMKSOFoMLD7Z6Ow0fzpRAH5X101+X6cXH/2trQ5vkHmupFRqfNROKa R0Q9NySutKjQ1LhyYeTht88dFybEJeW0EIipnSVm6x796tTRqSDxZvYVLJ6C9pddSe lmhxKmkd1UlTR/XLtH/OMC5KiCKDfIKHqzod49SEQ6GmweWUD3/RJ2VFGHHV2LRCsF PDP6MNuaiUC+A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9A3F967D90; Thu, 25 Sep 2025 11:48:55 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 25 Sep 2025 11:47:38 -0600 Message-ID: <20250925174753.3429102-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250925174753.3429102-1-sjg@u-boot.org> References: <20250925174753.3429102-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VFNCIIWE5E62PJXTEBMB446QKYAH643U X-Message-ID-Hash: VFNCIIWE5E62PJXTEBMB446QKYAH643U X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/22] cmd: Update addr_find to ignore the devicetree List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass We don't particularly need a devicetree to use the addr_find command, so drop this condition. Signed-off-by: Simon Glass --- cmd/addr_find.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/addr_find.c b/cmd/addr_find.c index 64ecc816be3..9d88091f541 100644 --- a/cmd/addr_find.c +++ b/cmd/addr_find.c @@ -21,11 +21,6 @@ int do_addr_find(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) loff_t size; int ret; - if (!gd->fdt_blob) { - log_err("No FDT setup\n"); - return CMD_RET_FAILURE; - } - if (fs_set_blk_dev(argv[1], argc >= 3 ? argv[2] : NULL, FS_TYPE_ANY)) { log_err("Can't set block device\n"); return CMD_RET_FAILURE;