From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB1C9C433F5 for ; Mon, 4 Oct 2021 03:47:35 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7500A611C0 for ; Mon, 4 Oct 2021 03:47:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7500A611C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE48E83581; Mon, 4 Oct 2021 05:46:29 +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="QD/wvH5B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE20D83577; Mon, 4 Oct 2021 05:46:16 +0200 (CEST) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 BE9308352E for ; Mon, 4 Oct 2021 05:46:03 +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-pg1-x52d.google.com with SMTP id 133so15274771pgb.1 for ; Sun, 03 Oct 2021 20:46:03 -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=Hiq0GPfOIkgEsC+7jlW39Y8NMVcrrhfZ+hZNCMT5yrc=; b=QD/wvH5BfGqS+Y0F0+ArxNHAIFQu3SIoDN5ay8AZAp809s/f75pUPGXe6SRyR/FwZf jxx8euNbkF2WFv30Be0G4n41pxXPHXOcHFK58p4VIsst5c7ALqb6vzNrAtvfVYVeTGke YqcXxf8fq67CwwjZBgCWxxGCLok0+TGI6/2OQln2ywEXKtR5hGXtNhZ+PLhSmNUVlRPZ GkEREnMSuPnH43jsuo70mGlr7eidIz7vBF3IeuG7IdN6F8vCgHQpK1v6iMYZEXcQ2JXf IklVqorFLpd0odemsKvudsGry+sm1rMgnk+hiKeOSehS2ZErcEVx4LrNvio/7u+gwBiL +moA== 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=Hiq0GPfOIkgEsC+7jlW39Y8NMVcrrhfZ+hZNCMT5yrc=; b=xkEtrQSZobcaL+z7jyVSPmAEZVyaZXEsUhRyOHUoc9SHFHmbR/qHhbKbDr+MM/hIcv /sTRv8hO+HA+JrwtoFE0s69iK/DPXLSI5YtZ5767EGGDDcaUMbhOgyPAGRcuYyWSPzJy qZaZ8bLd4/ZsYb1QSNY3+BBcH/GCC6Ecwk2QH2y4l5Pt2PFS/8P2eS+1i0/QOdh0Q9Hg M/RQMKAVI23x97RmWMUu+gk38pEQk0CaMxl9oRUym+kzfwd9Y+JiW5ggQ1NObnDdhfl4 nkTzzQXBY5lvttWpdOuEftuPkzI1CMnmxtBsuFcExs4hLZpOPR0azJ6TZzzEEZve6Xyo Mn8Q== X-Gm-Message-State: AOAM53015k0piIdkO86w/BtbXt+QbV8hWUJMdBFltGkrt5U4X/+MGOZO SpyNSD6jmqOUdTo7hd9q3KxB5g== X-Google-Smtp-Source: ABdhPJycAFCsDy7EL9ZWTBEapX+Gu17b8SV2OUQ0ClOpZNKhCBPzm7FuRLO8omHu1ajjqZ3BqscOWg== X-Received: by 2002:a63:7d05:: with SMTP id y5mr9046142pgc.80.1633319162010; Sun, 03 Oct 2021 20:46:02 -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.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:46:01 -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 13/22] efi_loader: remove !CONFIG_BLK code from efi_disk Date: Mon, 4 Oct 2021 12:44:21 +0900 Message-Id: <20211004034430.41355-14-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 Content-Transfer-Encoding: 8bit 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 The change in this patch will probably have been covered by other guy's patch. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_disk.c | 49 --------------------------------------- 1 file changed, 49 deletions(-) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index dfa6f898d586..cd5528046251 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -552,7 +552,6 @@ efi_status_t efi_disk_register(void) struct efi_disk_obj *disk; int disks = 0; efi_status_t ret; -#ifdef CONFIG_BLK struct udevice *dev; for (uclass_first_device_check(UCLASS_BLK, &dev); dev; @@ -580,54 +579,6 @@ efi_status_t efi_disk_register(void) &disk->header, desc, if_typename, desc->devnum, dev->name); } -#else - int i, if_type; - - /* Search for all available disk devices */ - for (if_type = 0; if_type < IF_TYPE_COUNT; if_type++) { - const struct blk_driver *cur_drvr; - const char *if_typename; - - cur_drvr = blk_driver_lookup_type(if_type); - if (!cur_drvr) - continue; - - if_typename = cur_drvr->if_typename; - log_info("Scanning disks on %s...\n", if_typename); - for (i = 0; i < 4; i++) { - struct blk_desc *desc; - char devname[32] = { 0 }; /* dp->str is u16[32] long */ - - desc = blk_get_devnum_by_type(if_type, i); - if (!desc) - continue; - if (desc->type == DEV_TYPE_UNKNOWN) - continue; - - snprintf(devname, sizeof(devname), "%s%d", - if_typename, i); - - /* Add block device for the full device */ - ret = efi_disk_add_dev(NULL, NULL, if_typename, desc, - i, NULL, 0, &disk); - if (ret == EFI_NOT_READY) { - log_notice("Disk %s not ready\n", devname); - continue; - } - if (ret) { - log_err("ERROR: failure to add disk device %s, r = %lu\n", - devname, ret & ~EFI_ERROR_MASK); - return ret; - } - disks++; - - /* Partitions show up as block devices in EFI */ - disks += efi_disk_create_partitions - (&disk->header, desc, - if_typename, i, devname); - } - } -#endif log_info("Found %d disks\n", disks); return EFI_SUCCESS; -- 2.33.0