From patchwork Tue Jan 15 02:55:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 155610 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4388750jaa; Mon, 14 Jan 2019 19:02:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN64kTrFCM/M3hgz1Patf6mlV1A1kBOKHO+1sR8pJFHslZRRco71+ge97xV41X4vU14DfOFc X-Received: by 2002:a17:906:7087:: with SMTP id b7-v6mr1473517ejk.194.1547521341423; Mon, 14 Jan 2019 19:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547521341; cv=none; d=google.com; s=arc-20160816; b=LZaqV0aurPdffFsbob9ZMcqsd91eWXygsB+qbcByo4vHDUfxWBe3eLBufRZDcKbp/T HXhq/zAiudS9McDEkx1BVFErVIIValQ0mJtJk5SxHrOVwkdi4/45mR0Rff302ww0KqVx 4kX/jvVEX5waFCswF1cWZJII2/UpnDpXd9cNCSdwuj7ToFmnpVeEejRQjOxrVauF9xO5 gRyk+XEg0w1QQ8cysx0qkMJtlT/+DWBJ9OeoZkcGhkuh1lzNxDCYY5HYGBqZIOV6GxzW oCpsyUtNiQZlFyjhHV6SCbT8rehVRIfIrrQxZZOjrkyF2WBK2ZRqhbn8JpdqdczpGB6U WYAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=ag0Zb2VuF2ejFbMdiKsKRhxtXm773Fp5XM8Yvq8iIIQ=; b=GOw+KLrVRYM33J37ixoFbnalN1ZhoP7IqnXWxg2O9238xZcWaCVKItJ0d77K3svRvA D26KAje5jYb2MObKF2FMA7ZTK9NlwxzGUAF0mV6LOpSUAEc46GtAnCVXnSKNRE9d68Fz kFYS77WYxfTAgCba8Ud6rw0TZnlwUiYh49WuGXlFCGy4jo43puFfVA9FAYuDTrQ7ThgW dqfkAsXPF8F7UVW12X3PxnRVrphAiITGLUc68YofqHBYijms9U9kqveDyvUok5XHQIxM rtqbzKt3AVck2udLu1NCApVPwC4X7jFR8pN1J8JVbTUmb52zcG2g0sY6CXzRpxgYXT1V NYNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bSWJvQ1j; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id n9-v6si2961349ejk.117.2019.01.14.19.02.21; Mon, 14 Jan 2019 19:02:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bSWJvQ1j; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id EDD76C2214B; Tue, 15 Jan 2019 02:57:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F2366C21FBF; Tue, 15 Jan 2019 02:57:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F230CC21FB1; Tue, 15 Jan 2019 02:55:47 +0000 (UTC) Received: from mail-yb1-f195.google.com (mail-yb1-f195.google.com [209.85.219.195]) by lists.denx.de (Postfix) with ESMTPS id 3BEC8C21FAB for ; Tue, 15 Jan 2019 02:55:43 +0000 (UTC) Received: by mail-yb1-f195.google.com with SMTP id t16so483538ybk.10 for ; Mon, 14 Jan 2019 18:55:43 -0800 (PST) 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=AmBTxj3uEqzccOSRZ7sxaJdwBZZMiWbtAjjclDg3w5o=; b=bSWJvQ1jlaD4fU9PVIPA2r38BWifze1CKXXfRFTW6tAEzJ6X6THCXpt/4Jz78sgws7 H88Aj4Egn54nRc/WsC9ewHgUCPrglKKlAglyvpL+tH5/VYBSzniYREAv+uuqiM28ule1 1bxk+6wXTqxfR6bH7YJd8qAFAvNARkUpC6pPE= 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=AmBTxj3uEqzccOSRZ7sxaJdwBZZMiWbtAjjclDg3w5o=; b=EddUgc3xNnQeG4UUYfAs//csK1T6w/G8gSURXMikPwy6FfauC/dG36Op2oWTOEsLln ZPSZpDTWAW+1/WcQYuzF2Ilvb15fHp3EdUzfBYndecRfyZawtsqlqycDH9XX8O6ZE++P 9KNN7MCf/SV7AVmiUwx04itt7voYq6xVNWMeKd8+6lagdpLYJ5xfybB9YRDY4iOdKtdn i4ZhhHcShPFfP635uXF0ZV+FqOT0xzFbQijFmPbxZala/MmkgJc43KvnD9/4KYxklLvW UuRuJHj3Od8d8ZbjG1NUAS48xPMAUpp65gKy7HNgmRyfcQZmPoUMxTbHYYau5GGPhVFp xJdg== X-Gm-Message-State: AJcUukcRBLADYE9WyNv1yLPkS3fpAuqSkgH5XdABLxtE91fzKl2ZrrRg 03tdTtXIsPIE725/yXfJrMRlJA== X-Received: by 2002:a25:2a4f:: with SMTP id q76mr1260778ybq.141.1547520942247; Mon, 14 Jan 2019 18:55:42 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id y16sm720140ywg.35.2019.01.14.18.55.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 18:55:41 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Tue, 15 Jan 2019 11:55:16 +0900 Message-Id: <20190115025522.12060-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190115025522.12060-1-takahiro.akashi@linaro.org> References: <20190115025522.12060-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v4 3/9] efi_driver: add name to driver binding protocol X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This new field will be shown as a driver's name in "efitool drivers" command. Signed-off-by: AKASHI Takahiro --- include/efi_driver.h | 1 + lib/efi_driver/efi_uclass.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/efi_driver.h b/include/efi_driver.h index 840483a416a4..ee8867816094 100644 --- a/include/efi_driver.h +++ b/include/efi_driver.h @@ -34,6 +34,7 @@ struct efi_driver_ops { * This structure adds internal fields to the driver binding protocol. */ struct efi_driver_binding_extended_protocol { + const char *name; struct efi_driver_binding_protocol bp; const struct efi_driver_ops *ops; }; diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c index bb86ffd399c3..8bbaa02d490e 100644 --- a/lib/efi_driver/efi_uclass.c +++ b/lib/efi_driver/efi_uclass.c @@ -271,6 +271,7 @@ static efi_status_t efi_add_driver(struct driver *drv) bp->bp.stop = efi_uc_stop; bp->bp.version = 0xffffffff; bp->ops = drv->ops; + bp->name = drv->name; ret = efi_create_handle(&bp->bp.driver_binding_handle); if (ret != EFI_SUCCESS) {