From patchwork Wed Jan 17 04:39:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 763285 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e5d:0:b0:337:62d3:c6d5 with SMTP id j29csp100258wrz; Tue, 16 Jan 2024 20:40:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwvSHLmhqIEI83trcCVrOAzuLI6kGtSwcRs4+tLG2wwxDqzsItQDAEngk8CkdKRfIu5YfC X-Received: by 2002:adf:ea4d:0:b0:337:c155:d130 with SMTP id j13-20020adfea4d000000b00337c155d130mr315024wrn.41.1705466446951; Tue, 16 Jan 2024 20:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705466446; cv=none; d=google.com; s=arc-20160816; b=Ly8v9p3nfo4un68HJYV1iEOF5VNicZvUAaXSrGgkrRKSKEjKHRxZ8UOgAH1e5pkT2h C5ry4qoDV/kt5tlFHmt80q3kG7PeSQH1fNWDx7hyOK5/seN0nn3WeoaRQ9ptYFNR+Ref 2phh7OjzdrelP3ByR0I0uHmZNE8i9dmbhZHLITqOp+ZCQoXIKlv7on28PNpPvRhzKMrk eVUTlyLltspNZOAJaRTh8mwY7I4O1B3XTJXN/V+WyDh6mCd5wKGVj53AnW5Kig26XgOw vEGEzrFCaOFhIRQMAr1Xjc/gy8Z70VZHlABYVw9VtIHHJlVhIgQ4t8WVZof0Jz4EE64z 7ccg== 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=uLu8RNfQOxa+r7scNxZe5YOo/ZxWLLZ6QlPdhb7HAxM=; fh=p8OTi/tJSbfUA0ykVxDxRCnpqUhQqJazFYHXT9edm5U=; b=BQIfn8kYhQacMWjQO4xOhTiR3P+gV1BvOfLJvmnefLWorfhNXbKaBSWuyklRNSxg7e cIBgaV0HJGc0mCB/N4PATWi6+SGML0m3VnAPKfB7qPTfWElU/Li3Oud2hxyWkDspF8rX lizq9+slVhstomVThZXClAkCQUEVJ0/djzv5wWkfEwNPor2QBV8+yRfe8GvT3P3udLiq PbJlKAeo1WOFZt9IFUKIfJYz1VQUhMyog0sx4NaKJClUgebaPPt8rtxJrZceYnpZnFFf hykKrTe+VA4GwCIwAeGNG8k0vuzMsGIejj033NGi2ew9AA8UITpFIf4J6lNgkH+cCCyy zpIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMQQd1qu; 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 r16-20020adff710000000b00336c1208562si349255wrp.611.2024.01.16.20.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 20:40:46 -0800 (PST) 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=TMQQd1qu; 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 6AB37879A0; Wed, 17 Jan 2024 05:40:13 +0100 (CET) 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="TMQQd1qu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ECE7A8790F; Wed, 17 Jan 2024 05:40:10 +0100 (CET) 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 516488798B for ; Wed, 17 Jan 2024 05:40:08 +0100 (CET) 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-x62c.google.com with SMTP id d9443c01a7336-1d437a2a4c7so18673515ad.0 for ; Tue, 16 Jan 2024 20:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705466405; x=1706071205; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uLu8RNfQOxa+r7scNxZe5YOo/ZxWLLZ6QlPdhb7HAxM=; b=TMQQd1qusedBsSS+OuKHTvjfJeSyYZaAaO/szjNIzqj5RSAZTfPE1nHRZ7NrcEEBFK 53cohnMCPG3xzZlNIbvwaIsi0BzxDAXD8gK5al3kVoSH/2jzYjcUQ3srIWsm0e/MlHvm 75YRJSy85vxJD01A1ZMps+LjKyeQFKzJwuIiTgmyqanGE3b6/PPS76F6QcOWhstj7NO0 5SRfbIWAX+OcKug6ffyiOG+rhrx5bII87ttFXys6FawNs+rCOxFkLTcv27CERNaLJhsS a98nptdo35f/swXx6gxrWMI8npgf1kOVeV85YqSAbAREhzeVlIb9kUzpJzBhQ4ACFV32 WNmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705466405; x=1706071205; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uLu8RNfQOxa+r7scNxZe5YOo/ZxWLLZ6QlPdhb7HAxM=; b=C0j/cBZmuVJU3c1H+znOVcPbyZ051MMTpEY0hxIPsN6k/rwLHkXyBi59Rih4ilI/jQ MCpOoYA2FZpt4kdRW5xR8mR5d7E4yDfrkMprjeNviPHcMYL+Cljj6jko25IvL7wDbYFg FXFTSvxDvO8eGTwyR8Js2FMK1KiGdktbvIC7NKbZB3e89n6OLXhDTKCZ+kNtLm9XeCUL njLphaiUEhVhHzUP880IMHEfHXAId3jxxg7yxv5NH+fQq7Q2ZZoR4TS9PSAyhf99T50p 4ygXcT6yYWZpPaHd7VHmjx3LRE04fKip8lhlIQCT643QoYtHblyIYgvPnOwYYbNxeJO0 8KhA== X-Gm-Message-State: AOJu0YxPWa3KAkOUvrKE2ssm7NjK9wYofuJ4NUll+EIMDrDoZZxL6SZF wwoxUqmaaHxsNDuT4Q+67brRZHloxh5R3vdxKYZxWAf7z6pfWQ== X-Received: by 2002:a17:902:e981:b0:1d5:f667:10a1 with SMTP id f1-20020a170902e98100b001d5f66710a1mr2280718plb.6.1705466404709; Tue, 16 Jan 2024 20:40:04 -0800 (PST) Received: from octopus.. ([2400:4050:c3e1:100:e481:26af:1a49:433a]) by smtp.gmail.com with ESMTPSA id s17-20020a170902ea1100b001d403969bf4sm10048668plg.309.2024.01.16.20.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 20:40:04 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v5 4/4] fs: remove explicit efi configuration dependency Date: Wed, 17 Jan 2024 13:39:44 +0900 Message-Id: <20240117043944.477358-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240117043944.477358-1-takahiro.akashi@linaro.org> References: <20240117043944.477358-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- fs/fs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index f1a0b70d1d57..acf465bdd807 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -791,10 +791,9 @@ int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], return 1; } - if (IS_ENABLED(CONFIG_CMD_BOOTEFI)) - efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "", - (argc > 4) ? argv[4] : "", map_sysmem(addr, 0), - len_read); + efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "", + (argc > 4) ? argv[4] : "", map_sysmem(addr, 0), + len_read); printf("%llu bytes read in %lu ms", len_read, time); if (time > 0) {