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: 319343 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp141750ilc; Wed, 28 Oct 2020 21:50:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtIgh7cBzPnANUsxLK2TExgCDiG3y6L5tsIZldtYOGyygFlkA2f/GILZaFNBv/f4/RHElk X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr2166828edu.378.1603947014797; Wed, 28 Oct 2020 21:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603947014; cv=none; d=google.com; s=arc-20160816; b=taIR8dRUpaUEO1MqOh8sK0SzIMX2azCGupCE+FjOxb61ZmiPfJlPAaPuw/AA2JE0+4 7Td0PsFSTWiAdz3c6Zx2CHPJjDmC+6G9MfWIbkKsIDoib3PoWyNDcFlFJwxUSeByG/nD Csk/jTYdHZgwzutp/gcrlSqKhPFAfdgG8exyXCLe8EVLM/R0i7JLraH4LxA7fRZrk77Y QYzGxKS0qFZx9zMzCrMd9zAm4p20QH4Dt2o4RTjaP3H9A+B5V60pR9hCcP4mSE78CA48 TVN43h61rqo8yz4fXoJG8CSxLvudYsFej8u8yFIKFuKssrh1LjfleFy4WpIGdm2uY99b pRvA== 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=K4b53TTK7B9Kn1SFP1JixXFzUAeCc7sItrVkDCURrFA=; b=XlZBP1U8q9zLFWtKxVgtE+GH72CP+hFsb6FPeQkmG1DYAiDNkkX0uFWUqu+hhoXui2 EyitdmrR9E31+xHnksDKfGkng++DFHab//p0iGCw5tmVWA9a7pnW1QMfVWCnjFNMRjmu diGafjGlEVuDf03n0y6fn7BRwjqHyY4uwtZYxIej1gAWFLF/lfs76YpWXqjO1yHz1NTC Fys2jVgafMZ/rfOp27S3wWYKNF64S0fwEVotDC6sELGDk02vC2t14NCn5U+riUp+j+ix dIwFadYNxfKdmf/3LXE7kpjC///+UMPpR6B2qYfRWYcvL4CRajdwP+7Qjv83KVqHwcpx hOrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k5qnIatS; 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 w18si1052703ejz.722.2020.10.28.21.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 21:50:14 -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=k5qnIatS; 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 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-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 --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.28.0 Reviewed-by: Tom Rini 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