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 91C2CECAAA1 for ; Wed, 31 Aug 2022 03:10:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CCC1B849C1; Wed, 31 Aug 2022 05:09:50 +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="A+2D+Eq3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C0B7C82A33; Wed, 31 Aug 2022 05:09:36 +0200 (CEST) Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) (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 532C9849F1 for ; Wed, 31 Aug 2022 05:09:18 +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-oa1-x32.google.com with SMTP id 586e51a60fabf-11dca1c9c01so21386622fac.2 for ; Tue, 30 Aug 2022 20:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=cS5y9NdHc9+zSoj6hAIV0RefclPvQoN0LHt2usDuv2A=; b=A+2D+Eq37oLB5trbfwl3GHVToPoqp3gMVlQ117Hv0cwtyOw33BPkFXDaak6vLJU+F5 eJ4JcyQaoBL78ciLlOtPVEjidAxDsnIjxf/1uS9++97Y2Gs7y4vv1tP3Fz5AbEhDUp0I 4LnFYCwdJlHxOCEKroXDmZ2OBvJF3zUjqfEQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=cS5y9NdHc9+zSoj6hAIV0RefclPvQoN0LHt2usDuv2A=; b=qOdlKHObof9uCNaLwk8mD5I0IYvmSPdQCHMe48QNRewdfv+zglI8KBd3BEL8VXcfyz 8sSJXxN2LmFeL/IG2576jLHHowiPNGB7zsGJkwnN69EJN6ah5++inACuRL8StXJ68ueS l0Rot8j0/z4lyM/NKeoKa/kk+prOYkaI76wjvRi+hLlAj/N7KoF/XVkwLrIbPhKITBrH RHMFThlkmFNsRzgU5RQLzhryoE/YwzfkSJwZF3fm2NzfW/Z9YCeEQCIWfchUZiTmwyAK SkU/McpsUVrm6TLhTyu9B1qir3FeChYo1WUzQoVju3YCvrydTyKccoYB0BWk8Wyi6omc B1eA== X-Gm-Message-State: ACgBeo0dMTG2oFBwpy3ocsDOx0V7pT+J7zrz/OVsMHnPzOZr7Vrj56ub W6h7mO1EtJybL+qzyJ60Ew4GtQBt6NcZ4w== X-Google-Smtp-Source: AA6agR55iiH/KzSbnx2csO7n3Oh+8bS1Lw1wjVU7bSqFHKzSx27MItC63x71V45i1uTa1C5QYLvXTA== X-Received: by 2002:a05:6870:5599:b0:10d:cd9a:3d46 with SMTP id n25-20020a056870559900b0010dcd9a3d46mr495608oao.18.1661915346760; Tue, 30 Aug 2022 20:09:06 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id fp39-20020a05687065a700b00116d5103487sm9282605oab.31.2022.08.30.20.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:09:06 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Michal Simek , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Kishon Vijay Abraham I , Tom Rini , Simon Glass , Alexandru Gagniuc , Artem Lapkin , Daniel Golle , Heinrich Schuchardt , Marek Vasut Subject: [PATCH 07/21] event: Pass the images to EVT_FT_FIXUP Date: Tue, 30 Aug 2022 21:08:03 -0600 Message-Id: <20220831030817.27804-8-sjg@chromium.org> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog In-Reply-To: <20220831030817.27804-1-sjg@chromium.org> References: <20220831030817.27804-1-sjg@chromium.org> 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.6 at phobos.denx.de X-Virus-Status: Clean Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass --- boot/image-fdt.c | 1 + include/event.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/boot/image-fdt.c b/boot/image-fdt.c index ca51796322d..884e089f2d8 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -669,6 +669,7 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob, struct event_ft_fixup fixup; fixup.tree = oftree_default(); + fixup.images = images; ret = event_notify(EVT_FT_FIXUP, &fixup, sizeof(fixup)); if (ret) { printf("ERROR: fdt fixup event failed: %d\n", ret); diff --git a/include/event.h b/include/event.h index e8f2f55c63d..720fe8ae695 100644 --- a/include/event.h +++ b/include/event.h @@ -60,9 +60,11 @@ union event_data { * struct event_ft_fixup - FDT fixup before booting * * @tree: tree to update + * @images: images which are being booted */ struct event_ft_fixup { oftree tree; + struct bootm_headers *images; } ft_fixup; }; -- 2.37.2.672.g94769d06f0-goog