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: 1333527 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=koLV4xbG; 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 4BBQ3C53z7z9sPB for ; Wed, 22 Jul 2020 16:07:03 +1000 (AEST) 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-Google-Smtp-Source: ABdhPJwrbhLHvOpT4AU6/54ujKBtXxJbo6kPB74jWHR0hxvhU3A894aYDKamXKGsxSDj3RtSDZS0Mw== 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(-) 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