From patchwork Fri Oct 1 05:02:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 515018 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp455043jaf; Thu, 30 Sep 2021 22:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhAsFGNxUe6huhA0CFPd8XTzdhrbv/EQjFizMZJDOdZK94YRT76ZMoPG6rc/Sb5dOP2/68 X-Received: by 2002:a05:6402:2793:: with SMTP id b19mr964188ede.291.1633065029316; Thu, 30 Sep 2021 22:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633065029; cv=none; d=google.com; s=arc-20160816; b=DWxRontDaJRYQMts98b2Kjsd9r16CC/tXBJx6w6PtP0IS0EoXhKQkCz9W12uOPaB30 8CMTYWDWyhecfzNyfC7cNB1nf8skwOuyiW1F47ylsCpZx5vJTICRTNtCp8E/Xz9tbqDo 8+oX/QtHY22zrqFghO1boU7bdR8GCc420rD7zAntM3y/qyAOdQqBP2wdj09pVHUxVfUJ fYOv6UNnsAEa//czF9pUWWK43jwyh1pn6g8zLqrZENEliGwc2AnBBWqkN8Rt/dHVcOcD 1XuzCM6uScaGmGz8sZs/chQZ4+sUT+zlXSeM8MKgQVJLJxdaF2A4oN+WjVA6cOD1mR9e zBZA== 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=z2EfY/o1jchZLbwBLoISU32/UhHuSHsE3UD7kvX6Kehkv87VkTcAvMlrg04Uygxgql JS7cy8EzUvA0YWnKiDv8Rya34ymlrJ6uzMZYg4Y7VI6imbYIcWSDn8lJOX9TgyewPQEw DXOins6NBbrJ9Nd0vctMmBOfQ6TvO+YdTSVMdmeblAa2OSu56B7d/mcAy2H3sZAoRjLp H1xWV2doasSfv5/eUhgERCyvroxXVsje/XnkCS+UaGKXeVsh6S45dvYY1fwizHWtS0f+ 4E60j24hGwYEBc+VvqF8vbipsVEM87OQowxvCirbf4JKNRCN5mdHU2jGMTAAa6nDk25E Zs6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GnsdGf1O; 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 f12si6057855edl.138.2021.09.30.22.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:10:29 -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=GnsdGf1O; 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 46D7A834F2; Fri, 1 Oct 2021 07:05:57 +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="GnsdGf1O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D094D83230; Fri, 1 Oct 2021 07:05:25 +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-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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 52BEB83165 for ; Fri, 1 Oct 2021 07:05: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=takahiro.akashi@linaro.org Received: by mail-pl1-x634.google.com with SMTP id c4so5538942pls.6 for ; Thu, 30 Sep 2021 22:05:12 -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=GnsdGf1O/QXYeZ2w6/S6i/ovo3EqqzHjtK3wTRy+OohigadShWgAW2WGnHliu/oHCj coM/sIvBs/B9zpvHzI9WuSBOI2wd+d0f7ULFP5ZAB6zjJGSeyzpt6nivoC1ojIhLCsuK nQfCAUgy2fbIRhuHGVj/V2AYsjE96zVLh43tQ1RIhf6+JBFO37Wps0VBZNh6oK4d3guu y/15JhICXW0GSoCcuaF2OiwNHfLZ6fdk4l1WtR4Dr50+vSuoCoNG+nftPp9TvebhgyOD nB+XgqiD8EAUDtUYANfsC+sj/ki1h301yJV8lbLIbqvEwhKbAyS0D8vsdqNRCi2I7aCK KYIw== 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=BwfTY4GghEJVOfo8hakC1rG6CZUhNfVL+RDg8Wa9tawDLhiGcSj3gFi1tbKfnU9RkG lRoWOLJ+LNjiW+/VDQRMapXPG6Qs7XGD8h3bNJfJ6ziEcM3WO/bcL711/MbmssRzMitS EGO6ONGm99Yen0tpx3jip5GNHg/G34IDiJ8zEnCQcgQJrFXucmWxSJkavGx46mou245N 36Sc7D/Y3o8bpPpvM+vl/uNAQlI2BfBSuwKAgHzlp9hRjpTmpK2hzjElXe77XjEk2j1Z tQTtz0+znThRXARakfLyBHTJzJHyRcPbwMkBVoHvpI4jSbfqq7sEBP/qbpNpRt368ygy O8RA== X-Gm-Message-State: AOAM530uv/uDEER9aDdwetrv29sD0AtKTxORXL9aFm7Vz9EV9UkXU/nj VoDv3RRE5h7rfpw0BAxNLpbhfg== X-Received: by 2002:a17:902:7613:b0:13d:b35f:b4d7 with SMTP id k19-20020a170902761300b0013db35fb4d7mr9303397pll.8.1633064710535; Thu, 30 Sep 2021 22:05:10 -0700 (PDT) Received: from localhost.localdomain (122-100-26-52m5.mineo.jp. [122.100.26.52]) by smtp.gmail.com with ESMTPSA id z8sm4615113pgc.53.2021.09.30.22.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:05:10 -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: [RFC 21/22] efi_driver: cleanup after efi_disk-dm integration Date: Fri, 1 Oct 2021 14:02:25 +0900 Message-Id: <20211001050228.55183-42-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211001050228.55183-1-takahiro.akashi@linaro.org> References: <20211001050228.55183-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 Reviewed-by: Simon Glass 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; }