From patchwork Wed Jul 22 06:05:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 246951 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp253574ilg; Tue, 21 Jul 2020 23:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVLoj5kpmUTAD5qG0No6Txdu3xN0rHOJUegEDWY2eY7+2RXAc/2OmVD5ptIRl8ejlsuxTG X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr30073816edb.232.1595398021158; Tue, 21 Jul 2020 23:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595398021; cv=none; d=google.com; s=arc-20160816; b=zsRhCD7QGo8crBfhRr1T64x+Rfvqv0LfAgLKwqpSUepaUKB9Ov9kP2RmyObc77BuVy IzcKaZoi+Tb5UCC0OV1s1MBEPZPciOQdK1iMhBUHFBTfij8AogPxBOyHd7Ww0pJqU/rR BG2lCswlmrl8kCaKXvLbS27czPrt7v5Vs1PvjXtVwPpHpCkv5Qs4iF5Wt4KeBvjMLBNi lR4gMmk9UlzYAw0Z4GIuee1R6mJwK7kz2Dd++OPcAaTfPAJYWeA1DlZoDAMdURzL95mH nlklXYuSRcTdBBHfi2/qrBBiM/m6QOA7uDJWuz3GPLgFYxiIsRZlHIbDD7nDm6LAsebG 0RbA== 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=r4BEvkOuFipWdAuVZGbVNtRzEmHHjROoi4SjmBOEu+NemYSwmfWwwA49jNDnwVSBVX QndHobbyuR52Ti3FXyc0DZVCyNeU42hV5/3ahNT8hVNonVq55QD0Z7keFqc8FWL7xLvm B+0ppN9yurYVyCC57ZEiMYvScr7e3N8E1gAkGp+umopDmxyNeriedCw1Spr9LjKlxzfx B6VTEtywXA9PhyuXwRR6OLTxPOMr5bKeFEpj8XfDT0J0j5yILTG9nb6Cy8RsUXij8lQf w0PmoWvgZZ7ALH/78sHUI2RwcvUeXzk5BDE7EcCt+lvQyJ+8GU1vaBD97H2aMy7nL7yI m1jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=koLV4xbG; 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 d11si13372122edz.263.2020.07.21.23.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:07:01 -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=koLV4xbG; 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 0B7EB81EF5; Wed, 22 Jul 2020 08:06: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=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="koLV4xbG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4538881F04; Wed, 22 Jul 2020 08:06:30 +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-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 0E6EF819EA for ; Wed, 22 Jul 2020 08:06:27 +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-pl1-x642.google.com with SMTP id p1so430320pls.4 for ; Tue, 21 Jul 2020 23:06:26 -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=koLV4xbG6+J2NwDnnNKocuObZU3tmK7RhYrKgmH+POzDNXxZuNy5Obl9IPxWv6wYSO Olh1WGCTCUsCfZwzsyk1UofYVcl95SOQUP1xL/3E/Ke7tLEZX0H40EU0fPOgqJMmM1g2 k6VXpm09yqvLX0SOH2/HQs9qWONDWd5XMEvZRRUBhUAb9JnNwl+XGv/2XLQOPSsJQY2f 8T+kAs8uwUwIABmRFGWaGcblXUUu2KD3MbtlWnK3uTIXfjmUe0q3GyVf6JnuVxvaD4OA zDwETsH8mDhOqNmxAykh89Lh+UuyVjZqte2RPSyN9DKrU5bHBvdFNTlH5xIWDvq7uL9y bLZQ== 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=n8O5gQRcwQ6SgZvvBOAezKqSjllfBh/oLjrUplEy+tbBjuzkky9OmY3s/YweYKqoMb Ga8kSzaqpKUU2dk9tG2hsGGOz1vgPm6r1bbdJeqbgypNm42FekfqbYJJdZ9IAxccS36x 4w+K9hBEdV8P5XA6oAiMAIwGH90RO88EnJF//I4iH4NXd9jzRh1VVqfn7Bw9sFvqXt2C FMp0uPPL5C3UTaUX/wYuEbvTPf/8s68k09A2lIQXcFz+E5r/TMVehVmEeznSsisMTMIo vrq2iV5Zw65WjfMLmM11NlUg/eHGmYOSGc/W9xS1FsNHZgm+/J6ST6YDA4n8T3rfs92U QxLA== X-Gm-Message-State: AOAM531jxdawPI/zrMOyqdVKHLilriwHIIFk+M4tn8zG6x5ApNUD/Aks O4v1ecetoeEZQj7XAjfu5ndS2A== X-Received: by 2002:a17:902:b7c8:: with SMTP id v8mr25299974plz.201.1595397985588; Tue, 21 Jul 2020 23:06:25 -0700 (PDT) Received: from localhost.localdomain (p6e424d9a.tkyea130.ap.so-net.ne.jp. [110.66.77.154]) by smtp.gmail.com with ESMTPSA id p10sm19578759pgn.6.2020.07.21.23.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:06:25 -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 v4 04/16] dfu: export dfu_list Date: Wed, 22 Jul 2020 15:05:27 +0900 Message-Id: <20200722060539.15168-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200722060539.15168-1-takahiro.akashi@linaro.org> References: <20200722060539.15168-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