From patchwork Thu Oct 29 04:47:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1389834 X-Patchwork-Delegate: xypron.glpk@gmx.de 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=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=k5qnIatS; 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 4CMCfx3nMsz9sRK for ; Thu, 29 Oct 2020 15:50:17 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6BA19824E5; Thu, 29 Oct 2020 05:49:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="k5qnIatS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2811D824DE; Thu, 29 Oct 2020 05:49:51 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 7E0B6824C4 for ; Thu, 29 Oct 2020 05:49:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x441.google.com with SMTP id 10so1339830pfp.5 for ; Wed, 28 Oct 2020 21:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=k5qnIatS10YCExZABDHdfp9SxnBpUldVhrDJKJE3Z6AoYX2sPYByRGvnlzPw2GK+kN bAlIF+ZV7ZAPeBltytY5Weh49oWPSHw9XX1g0ck+WlHTDkMS8IkMQpEK4UNe3s9cIBoM Actw/Rzl0LVh3ZVFzsniGvWWHqk1Ypktxh9locfQErN8X0UaakgErg85Q+0w0yx5QrDV t0vewxTOwCSdJCtDSo2cQ1m85GUm7i9Myi4N3n6+Fx7bkt9fS8zjaZ+ZPRkh2jzlhAOa 9YmWtdbZXGXOiZxZJ0+8ndYLykXQ2Rupm3UEmdtK9GML6GKxrVzQFOxz4tbOcpnKhG2p cOkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=Np9rltZiBZb6HLXIeroVs+M0tpDg7el89WtvJIiQIDprWdV7JOIlHqsEEU7205flPV PVuaSzSe+djKjo6yBhhGek8m1jzpt8yQQB8MnhCIJf9d/BDT3nfqobBM4RUfpYoidivl KTG78+eN6zeYbK+fQW22zyp9V4D9Ne5YOj62TOvdXc67Im6o/YCASinNjxICtEVne6Yx eZJkezDmY3SEZQ0lKZOIbsu3eZoAIr+/6ttbbEUFaOXW0bWr6erizZMNceNmv2DwejL2 YQuZ/CNqlQUMpK47d597ogMfxG20inS/JDIdUgR+ZOO2PhjZMANqH6exhgl6JaoX8inO hezg== X-Gm-Message-State: AOAM530W2lpCM2C3cF30aVMz7tblV9/VfYVuf5OavJ4sqIhLrdOmzqvH YAuV/J33vHRSAE3OxGn2URApqw== X-Google-Smtp-Source: ABdhPJzzB1R6MpvnlMgTW9d8oBftslBbADLqtkrgJ7JUdOxc2HMRHkuwlkNVcwEMowa8mHFqy9sQWQ== X-Received: by 2002:a17:90a:4a95:: with SMTP id f21mr2142616pjh.223.1603946987154; Wed, 28 Oct 2020 21:49:47 -0700 (PDT) Received: from localhost.localdomain (p784a66b9.tkyea130.ap.so-net.ne.jp. [120.74.102.185]) by smtp.gmail.com with ESMTPSA id t14sm830689pjy.46.2020.10.28.21.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 21:49:46 -0700 (PDT) From: AKASHI Takahiro To: lukma@denx.de, trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de Cc: sughosh.ganu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v7 04/17] dfu: export dfu_list Date: Thu, 29 Oct 2020 13:47:44 +0900 Message-Id: <20201029044757.183262-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029044757.183262-1-takahiro.akashi@linaro.org> References: <20201029044757.183262-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro Reviewed-by: Tom Rini --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index a298c2c43999..501a60b34400 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -18,7 +18,7 @@ #include #include -static LIST_HEAD(dfu_list); +LIST_HEAD(dfu_list); static int dfu_alt_num; static int alt_num_cnt; static struct hash_algo *dfu_hash_algo; diff --git a/include/dfu.h b/include/dfu.h index d3d7e07b60d8..eaf4bfc0d5ed 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -158,6 +158,9 @@ struct dfu_entity { unsigned int inited:1; }; +struct list_head; +extern struct list_head dfu_list; + #ifdef CONFIG_SET_DFU_ALT_INFO /** * set_dfu_alt_info() - set dfu_alt_info environment variable