From patchwork Fri Oct 1 05:02:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 515017 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp454960jaf; Thu, 30 Sep 2021 22:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXm1QAOPPmrxBpFY93qIHTJFU9G/p5UnA460yGT1TguXkNv59AHVDDZUN5nb5VaKoM7PqQ X-Received: by 2002:a17:906:fcc4:: with SMTP id qx4mr3855128ejb.364.1633065019205; Thu, 30 Sep 2021 22:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633065019; cv=none; d=google.com; s=arc-20160816; b=EdxR2J2eW62eAgtw1yl/kG07vAfCXjf5CVNrm+M0yB200AhLc1sxaSJ0O6lMosZmsE oazMhcAKoJlMwzS7GtjiZ+1NzTNg32yns+n8yjBLi4+UkbwLBF3573oMZ+KhJwH+WtD1 jk/+faBqx6xcKX9zYA+5Jj4gmS05oG/eI3GgmGSNPkawBqRxu5lkjk58IXeu3v+E22k6 ZXbhgcVhI2oiLORKz4pk3jm7cgqFJHYfUCaLBXVBOaUBNTNDf4UNZ76I8vvgwTB2E7xl 4au2dAn+x8LsjSQirRvxUc12TxmupkJbNVru8CtWhOqYsWbQZBuUiXNvpdwCLH97Kw3/ JEAw== 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=Pf72jMwxL7coF7YzeDlRjAv/54gRzwMc5REURz3rPjavsR1RH9tmFp4cFBGkyq30DZ FOWFl1OTx1l0ZSksyfKEkXkXFbbNTPRej54DCejOxi8H+HJ+1o4SFiihmY+tob6w/BzR L+VEyUD17QpZDjI6X3vtLQ5bc4MgLjWPpCNUKGk9ViJ7ktd40f3mZn18caoo0ziNRfN+ p8QiEcWbK1jMy0SoNL6Rr68a2cIuAh904zfNUJuxPcxoM7wN7aq2AuHxAZnGCPTkbeBB p06+8GMlO+4cGXvDJH4f/j91C94MQVTinrckhJYcofVaWy/wjX5SspLOEWM9Pqnxkogm yExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Okpm1CWx; 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 q8si5615593edj.90.2021.09.30.22.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:10:19 -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=Okpm1CWx; 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 45F6F834C7; Fri, 1 Oct 2021 07:05:54 +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="Okpm1CWx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8ABEA8347F; Fri, 1 Oct 2021 07:05:24 +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-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 7B5F08347E for ; Fri, 1 Oct 2021 07:05:09 +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-pf1-x42f.google.com with SMTP id h1so2800755pfv.12 for ; Thu, 30 Sep 2021 22:05:09 -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=Okpm1CWxMKxKQFUdAKY/xCKrVmxWKOJUD8ZX2Gc645VTkt66MTnDx0hJNH0JObzfhC 7JRDGh8NG3MQWtDLDmLfzbmGQtqJLd96vTCeJwhbm/UYMGvs+Di1wLiyqH7wLwk1Ve1H 9WvIgyDKiOvE+UTAfJcTyS5BJo/EH6GeZKbr0qjQFvSMS6o0+SCa+KatYmXSfsHCHG24 gYr2pzwr+06T7Rj7R7BMNwn43+5FTpa9ThAtGu+3WJhcbV3OOUGDH2a+hsh1/mLt2+BB ZbtEqMiQhxPOKNE7s2iKT1QYhRcwubmR7KBiA5o0r0Nb9NteYcOtrDotHFF1xQffNffk y/sQ== 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=svmA8Yl+LBPccdN49BzOkg+MvIvdtYci/PEB5b21KVwy9/gZrZrz4v+R7z2TeGaEWm meXGqG14oO/uM/Un9pVD3Ycc7ie2DOaSdUnPAZmwuX0nGbFouIMmEYJXo0rs1jPghbrl Rs9GJRLQbuV8yPnkuCaLBcpEUZnGbBfcfMD5BlfA1PRKtgjOUlSu3Iq/K/bUjqLvLbDf /e4elEBx/rxNiUEE0oJzqTbxGd0w6On4V27WS+xefIIria6U4JekJgO34mqySOso759H 3hjrphTbUkzPR9FiQ0HQxCo9pTdSXZAW8HWcKe/pmjNbF41fpAFFVhwCYE+aFw/cWDQ+ gObg== X-Gm-Message-State: AOAM530GiBQhhpf0PzI1kkgqCpUnPauuUDUs8+TBfNMpuXTKmZTFvJbw ZOBC0evelf/ghja9fVAtmhpBSA== X-Received: by 2002:aa7:96ab:0:b0:43d:f9e0:10bf with SMTP id g11-20020aa796ab000000b0043df9e010bfmr8258187pfk.32.1633064707635; Thu, 30 Sep 2021 22:05:07 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:05:07 -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 20/22] efi_driver: cleanup after efi_disk-dm integration Date: Fri, 1 Oct 2021 14:02:24 +0900 Message-Id: <20211001050228.55183-41-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 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; }