From patchwork Mon Aug 3 05:43:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 247347 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp931460ilo; Sun, 2 Aug 2020 22:45:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxjZl6V/0a9CNEnIjRjNBFRiHnB7Fi9Zn21vfJCiT5mtqY1Ecfofy5qApr9OCJOGAyp1BA X-Received: by 2002:aa7:c70b:: with SMTP id i11mr14006127edq.272.1596433509919; Sun, 02 Aug 2020 22:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596433509; cv=none; d=google.com; s=arc-20160816; b=VOWRynpbH/oUsJsUJ88Fe8Md6tbCWj5cOqgQrOM1E+2Vqv4Al/xOSVoA2Ea9qmRndW RSIixRNvAcIJ0jEobtFcHsIPXzHrIQ+yYM2pUn781UV0Exk7B3Woj4z3US7EYmBSQUTz T295oxbrbL7EGMPbVUsJGgut5Q1SCCpHGYKWKn+jdSeUtO8EVUN9eCL3oIeTVAcouSEc yo1yyYzfgcgixM2cDGN3JV4Grwouhui/EytqHGoPocT/BrC76nWBC2BGWcRDqR/NjWr4 YwO259drdqAxNHTKLDNScX5SQhje+jXk9F0G3dH12REQvU3cS6ScUYnhbC72jZLVPHZl UfVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g7hkT6Pb7hhp/lR72fqpriUXflikVWy5CYVs0jMluNQ=; b=a/1Q1iqe8GfQke2ob19pagQ0R1h8bP2Q/A8IrMuAPrSyxsKDmHuSP6IRAnnNzv8U0i vlC0QnFpur1UArSHghp4Bm641Yon1FsBKHUqwBm+K5hcEWDxmZCvUlxswsxp5zHhHgfg 5YA0MsEgKIpRIK8QgC2buTu+DWrbCEF1MJ6jpyNxWDfX8tuJnBHCC9iggvNeNwHU+k+y +ZFo1LsfaUHQYXgyYUxbLPdDvsmWYYJurFEgBXlMHGQMosp+jMpKM3Oce5Qxaj92QohZ sk54Qe84y9QFbKClucpuNxJ13uv023tBamtpR2K9LMz4i9Dhi9Hm/sHutcQd6qz+kReV S+iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RRSpiU8X; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o9si384878ejr.637.2020.08.02.22.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 22:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RRSpiU8X; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A77A81FBD; Mon, 3 Aug 2020 07:44:40 +0200 (CEST) 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="RRSpiU8X"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5166681F7C; Mon, 3 Aug 2020 07:44:38 +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=-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-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 1654F81F2C for ; Mon, 3 Aug 2020 07:44:35 +0200 (CEST) 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-x442.google.com with SMTP id a79so1813430pfa.8 for ; Sun, 02 Aug 2020 22:44:35 -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=g7hkT6Pb7hhp/lR72fqpriUXflikVWy5CYVs0jMluNQ=; b=RRSpiU8XM3lHJolcqmeIMsG4G2s3t2P/oK0fjCA4x+eyVUv2owa4uaJtoMeHpkhwK3 YVyQ2ol2cYIELyPw+a7NWm7EOGqtqIIPIAJIR2yTq5/9SnDrp+JrCruEeaTd+iLKm/vw HY9Jq6BFYZiP7Y+eVhXX9mPkaYypv790sTQtIaD6VWu1WuHg4NAsY1l/CaiDesA8/f/M Gku35uVxgVtsIue8BV+bdIf1D88LuZZUEy1v8glHP5v3TBng3XqZaDTxvo8BePPzdVc+ eUdvJmbN/vO8evEbZhcEWeCdpyMmYEgW79tPaPX7xHUpwotuijzyhZ2bq3X3FHogRV3x 4QLg== 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=g7hkT6Pb7hhp/lR72fqpriUXflikVWy5CYVs0jMluNQ=; b=T9hKF607mQMi5lGfvNFxo0miq6jRkhqOSUxWXU/36fog7PnvX2ymXd2ADNXndhCrg0 OLborogMfqdi2HCA96acwclu/krbsiR8+v0wW8XcaQWMjkUyT9bIWH229XBnqKp8BRKM GELLdjemucr6ZxSAJAiJBkCuvh8jETQShCGcVmjmsxyOQPmYpAJ34ff5U8thkHZ2aZaZ Pqvyq3HCOFKa3QV9TmVTyPkPZ9qqkWec9TJ2l0rFluTy639AkUzQTM6i8GD0t0xks5Jk oC011eI6zZ2zID2GdbtDE3hUKGzPJ3u0xwRBfOBgC3P27Xa6at1dpONfai0Lq4TL0aP3 8vqw== X-Gm-Message-State: AOAM531MCHZDLRlZHB2dtEvzvjdo0B4nxnvT/COE25ocnzh+c8fMfGuP NjlEiGxNH8Mk5L+s4Vk8/wHlCQ== X-Received: by 2002:a62:52d6:: with SMTP id g205mr14784250pfb.144.1596433473418; Sun, 02 Aug 2020 22:44:33 -0700 (PDT) Received: from localhost.localdomain (p784a66b9.tkyea130.ap.so-net.ne.jp. [120.74.102.185]) by smtp.gmail.com with ESMTPSA id r25sm16952633pgv.88.2020.08.02.22.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 22:44:32 -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 v5 04/17] dfu: export dfu_list Date: Mon, 3 Aug 2020 14:43:42 +0900 Message-Id: <20200803054355.17356-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803054355.17356-1-takahiro.akashi@linaro.org> References: <20200803054355.17356-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 --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.27.0 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 327fffc0dba6..4e6814a45b5e 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