From patchwork Mon Oct 4 03:44:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 515149 Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1062883imy; Sun, 3 Oct 2021 20:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6txPfqlvInYufEyJEeqjLxfo1rNqMJGFsLa6vWuc0sGTyDxLtjIm7kD3DlB5uzkdeQcyC X-Received: by 2002:a17:906:1b08:: with SMTP id o8mr14792468ejg.21.1633319334585; Sun, 03 Oct 2021 20:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319334; cv=none; d=google.com; s=arc-20160816; b=NiUlCwZL8p9PiQepls80Cs1yTP8D/EIYwM7OzaLmoq5iylXgVb/Ys8zG2dD9D6ODIg 8EKXYCtCY1AtF1YKVzZGYdZuf3h9xUAaSiGL0YJYyMUoo2n8wb6wwmMbdQyZWUQ7IQoH Qb+xncM7tf4TrnCxRyXXzQL4yUKpGa7p2MOrTjI+Nt+t/2ggkryloETBK+vTQbxzScuC +R143atDfCtYikQKiD7p6SXxIPtqbIAgBzGdWcoiLsErggncNcK5wv5MAN7jI3fEThVA 9DQFsHo996xX7ezk+KQgIRVfaQgPT2uXj8JPTRfks/9kjRV0Gd9c/dBjDAwFlv06gq2w yATQ== 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=6MEGdxi745RsEp0C1/1GgabgXJFBoip4chk54RcwxKw=; b=lWwF/pI6FtR07SRbxNrkOQmDoXxOk5eUpcfJyVHnViOk+HWYfQaN2j5hoj6K+ygqd1 P1UHUUiwZQIMSgRwbkibj33R3WdwLy58581Ur7dBnNEczzTXIhu/bkJWRDKUuZIV1pw5 MFl8mhB0aniCa0EKN4NoOaS+aZtAv6O2tLPKkwoIo8VHGRdq4uvCLKNlDvZ5yGTF4Kqs adkddmyGwY9h9VC+RQqTXiqKjxEhvdcU4tKei3pcn7+EGXd8B0augArZC4EXszqWIFBv G38tJpfDobYiZbxMGapJzdpGFOAovzzp7NzR7/9I6AI8Qw868YUA/sn1pOKoQ4p9WiZ2 de5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S4oF55Gk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id r17si4735616ejc.105.2021.10.03.20.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S4oF55Gk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 D2AA283589; Mon, 4 Oct 2021 05:47:12 +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="S4oF55Gk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75FA18359E; Mon, 4 Oct 2021 05:46:53 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 44574835A7 for ; Mon, 4 Oct 2021 05:46:45 +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-pj1-x102e.google.com with SMTP id np13so575868pjb.4 for ; Sun, 03 Oct 2021 20:46:45 -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=6MEGdxi745RsEp0C1/1GgabgXJFBoip4chk54RcwxKw=; b=S4oF55GkH4drZm8eFlZy7yh6YIyMj7EEmZnJn9cuyMSafQa16bK3QbY1x+BwVRyhLO Oo2YvHPPoJVnE6bxkWI5mGjzliopaWZWCsUcH9AuxsNtp11otUBXF/lPdbzs6niG0Hu6 R+lAwyDooBY2S7+Hkipm4h8IrZfI1ksdph58ZW/XGPLmBOtOOfdfbcpGrgW/iwpSsKds 88cynWlUeECyj4xRXq8rKGXylMCiwTH6ZSEUnC0sFOOIT5nYYkM04sgTcCRA4vNyFVt0 XxK64cj6tKbAlYNgIaZsDl+zHAVf5Vo8MljS1kkxgCwaB6DWVN5v04jHkCeXb+HlvYt3 W7Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6MEGdxi745RsEp0C1/1GgabgXJFBoip4chk54RcwxKw=; b=Rv7ffsc4OheZ6obfkX8UZpOyH75vMXkscsOTkhtS3+bW5BLvZi/VP26atIB21lmlgr 3+aSm14NO6C2aIIIxobX9S2mHJiH60FRdp/X2EgsVvY4Z/IM8F2chnq+56S/I3iKOeCH a4ozwwjBr4in2bbF8T/ksfzXAuaJfAWbbLHP5NZi49sA3KmN4uwNg+sjOG9jJntCtZUE vq4ZZwPSSlP/teMV/JJEUUqYtj92QSyzHgTEVunaCe4xqEeyuubo2s4r/h7xPnxba9Bo i8KA6tM4L1RfLdhrhlIqPfkLUtKhp3sZ/j1uOuOGYanFA/NPrJOOLXlS2qxXwiPI+3fV MLLg== X-Gm-Message-State: AOAM5325PkhbH7VQGzoSrt4YbckRc+qVKY50g8zl2X+8OZvl/7MDLJEj G3MKEyAaha61P6FKqk8MVMKD4w== X-Received: by 2002:a17:90b:3ec3:: with SMTP id rm3mr26516009pjb.93.1633319203506; Sun, 03 Oct 2021 20:46:43 -0700 (PDT) Received: from localhost.localdomain (61-205-96-147m5.grp4.mineo.jp. [61.205.96.147]) by smtp.gmail.com with ESMTPSA id a11sm11863515pgj.75.2021.10.03.20.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:46:43 -0700 (PDT) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [resent RFC 21/22] efi_driver: cleanup after efi_disk-dm integration Date: Mon, 4 Oct 2021 12:44:29 +0900 Message-Id: <20211004034430.41355-22-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004034430.41355-1-takahiro.akashi@linaro.org> References: <20211004034430.41355-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.103.2 at phobos.denx.de X-Virus-Status: Clean efi_driver-specific binding will be no longer needed now that efi_disk- dm integration takes care of efi_driver case as well. Signed-off-by: AKASHI Takahiro --- lib/efi_driver/efi_block_device.c | 24 ------------------------ 1 file changed, 24 deletions(-) -- 2.33.0 diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index b6afa939e1d1..1f39c93f7754 100644 --- a/lib/efi_driver/efi_block_device.c +++ b/lib/efi_driver/efi_block_device.c @@ -106,25 +106,6 @@ static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, return blkcnt; } -/** - * Create partions for the block device. - * - * @handle: EFI handle of the block device - * @dev: udevice of the block device - * Return: number of partitions created - */ -static int efi_bl_bind_partitions(efi_handle_t handle, struct udevice *dev) -{ - struct blk_desc *desc; - const char *if_typename; - - desc = dev_get_uclass_plat(dev); - if_typename = blk_get_if_type_name(desc->if_type); - - return efi_disk_create_partitions(handle, desc, if_typename, - desc->devnum, dev->name); -} - /** * Create a block device for a handle * @@ -139,7 +120,6 @@ static int efi_bl_bind(efi_handle_t handle, void *interface) char *name; struct efi_object *obj = efi_search_obj(handle); struct efi_block_io *io = interface; - int disks; struct efi_blk_plat *plat; EFI_PRINT("%s: handle %p, interface %p\n", __func__, handle, io); @@ -184,10 +164,6 @@ static int efi_bl_bind(efi_handle_t handle, void *interface) return ret; EFI_PRINT("%s: block device '%s' created\n", __func__, bdev->name); - /* Create handles for the partions of the block device */ - disks = efi_bl_bind_partitions(handle, bdev); - EFI_PRINT("Found %d partitions\n", disks); - return 0; }