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 6C49BC433F5 for ; Fri, 1 Oct 2021 05:07:58 +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 E74DE61A3A for ; Fri, 1 Oct 2021 05:07:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E74DE61A3A 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 A8B798343C; Fri, 1 Oct 2021 07:04:51 +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="vYrvJoo/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 279BE8331D; Fri, 1 Oct 2021 07:04:30 +0200 (CEST) Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (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 3EA6483305 for ; Fri, 1 Oct 2021 07:04:19 +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-x530.google.com with SMTP id m21so8305410pgu.13 for ; Thu, 30 Sep 2021 22:04:19 -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=vYrvJoo/70zdriLJ2g3Q0M0L73dZLVnhhbnZyZBGP3EfrTOk6bwqx6qywkE3r7rxEo UQ5Qb279GZ4NxuubOP6iLBOtskw1S4nAAmCnlxPubob1fj+gjm7RMqTWrGacr6icP9AK KCknXUqdZVaWpXN1D1aiJLHRF0xzLl+RKxixnmOfpQHcQVtt86bYZWE7rBcEMmc17Abr IMp45hypy9/ohs6iT13iQVl3CwgLIKYXKGUPebNL3Yh1x7KNTJIw9XMcU9PJYYCeLx5h Vko6tswAKDmOUGYSC286Jnycc1YOqjGb08tqXjacEkFSIwEG+Kpz4jOtGdhjAUrmwuP0 1xiw== 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=5WvV5q8bwBoN5bi/KQexuG5y+TpNI9Cso9W/YIxHRzs4LLOsDIU+xCgAvuPbMQPsHA LBV6vO8mamwH+SewJ2V6eHvBwD9vBfcjHWwskVfUAmv+ubfwgFAtG2ujVfQQh6iFCM3Q Uwf1vMKx6I7m5jnlTltKz306YN1l47EcJ4qU4S0jq9fWdORIM21bURoikXrcAgR4L4fO pDjtkHc9KfUXgBB+QIDnAIow5FAwV2Ie5DW66rn3Eb1t8PcRXgt9bTKofVOBzfozzCPJ rN/mImK/2Po7AL5U240qZWK1l5gKdDfVV9I8HaBfXtV2pIVIgGZRCReZ/dP9NJSNSNVG ylHQ== X-Gm-Message-State: AOAM530irZbBSNVHBN309+gyzAT2UFjbMKxfMlXMp/A9DO59yXkyj17O VDy/PwIwJfrpY4XBz45up+8bqw== X-Google-Smtp-Source: ABdhPJwOz3WuHVswU5IjfnfZfMgrTZTXw3bgakDV2UqCxHwnpHg/T4yhHSYCY1xt/6V1dhR/Y2XUlQ== X-Received: by 2002:a65:62d1:: with SMTP id m17mr8129010pgv.370.1633064657477; Thu, 30 Sep 2021 22:04:17 -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.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:04:17 -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 13/22] efi_loader: remove !CONFIG_BLK code from efi_disk Date: Fri, 1 Oct 2021 14:02:10 +0900 Message-Id: <20211001050228.55183-27-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 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