From patchwork Fri Jun 25 16:58:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Keeping X-Patchwork-Id: 1497371 X-Patchwork-Delegate: trini@ti.com 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=metanate.com header.i=@metanate.com header.a=rsa-sha256 header.s=stronger header.b=rDJFEXak; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GBNW53Z6Xz9sTD for ; Sat, 26 Jun 2021 02:58:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B891D82C03; Fri, 25 Jun 2021 18:58:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=metanate.com header.i=@metanate.com header.b="rDJFEXak"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EDE182C07; Fri, 25 Jun 2021 18:58:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RDNS_NONE,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 696B282BE0 for ; Fri, 25 Jun 2021 18:58:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=john@metanate.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=+CtfMZaNxEU8qjpfw+KKuhSui8CAMyx5OwtGwwbCT6o=; b=rD JFEXakZ3SE7VdpJ+ZgEGNOrhf3I3OSe/u5Gq2eq847/ZoEoz6RND2B/Jm3bNAAdVSlpcyGYoHmCyx wRA1zKW5WABQVdXI8PBah/IhoFpGzKYdgOiA1kDCwXFN2SMe7HDV3/4a5hsk4t5CUZMJMsz9JXSIJ 2RUn2EcFSqmUHp55fYFtmABSSGqxccM2cpRU4j5F5DrFRmpr28twtk64iPlrk2SCz5kkH+V/dhXC6 JtspkdZm/+54Bz0w7CiIbcsHOWveAYVBXehIwoBF0dpGLrwPtX6QMMXtCQOr/9V6jYzI+sdijnGt8 h9KuYx+s1Bc5ydFV6uf5GUzEy6PExQiw==; Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lwp9w-0005pZ-Np; Fri, 25 Jun 2021 17:58:28 +0100 From: John Keeping To: u-boot@lists.denx.de Cc: Simon Glass , Sebastian Reichel , Michal Simek , Ravik Hasija , John Keeping Subject: [PATCH] fit: Allow external data for FDTs Date: Fri, 25 Jun 2021 17:58:04 +0100 Message-Id: <20210625165804.3622284-1-john@metanate.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Authenticated: YES X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Switch to fit_image_get_data_and_size() for consistency with all other data loaded from FIT. Signed-off-by: John Keeping Reviewed-by: Simon Glass --- common/image-fit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/image-fit.c b/common/image-fit.c index 94501b1071..4c5a24806d 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1772,7 +1772,8 @@ int fit_conf_find_compat(const void *fit, const void *fdt) } /* search in this config's kernel FDT */ - if (fit_image_get_data(fit, kfdt_noffset, &fdt, &sz)) { + if (fit_image_get_data_and_size(fit, kfdt_noffset, + &fdt, &sz)) { debug("Failed to get fdt \"%s\".\n", kfdt_name); continue; }