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: 1024973 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="bSWJvQ1j"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43dw5N1b89z9sBZ for ; Tue, 15 Jan 2019 13:58:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E4888C21FCB; 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-Google-Smtp-Source: ALg8bN7ZuQsXnlwkUxu9Z0J5bHmd7juwU16hlakAC3ZvJjK9AbqiP9QSPq0FcFR9AyUmICx5SmmN1w== 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) {