From patchwork Thu Oct 26 05:30:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 738328 Delivered-To: patch@linaro.org Received: by 2002:adf:f842:0:b0:32d:baff:b0ca with SMTP id d2csp638949wrq; Wed, 25 Oct 2023 22:33:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkphEt2r7FZGnalSVzjS5HROIWod0YkegkvJujGk5ofGnsao4OmIWiA5ecPgEbjXJRFX9T X-Received: by 2002:a05:600c:4f0f:b0:405:3885:490a with SMTP id l15-20020a05600c4f0f00b004053885490amr13046107wmq.0.1698298418982; Wed, 25 Oct 2023 22:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698298418; cv=none; d=google.com; s=arc-20160816; b=s33+YwXFGYVLbWM7eIg0lAms49lBkEG3O1j8U0zOBXLxLIL09oHEx+IHod0Fjce2TH jGa3MqoEuZCIL6ZdFEpHGimuuB38XpVw8MeGsmSSCOJwqkbviBPEorerHqYbNoLSLdd7 +c9owmrsAqbysX1UQJEPCDps3x0+Sl7IVZGxPDHuIoc5XIr0107q9d9wZs1I+P5ORuYD O9N32oOpH5JLSoBGZ5hqu5ivlLqUaW97es1OPu0+XD9pvAZoXyFS5/vuMfpN3y0tUyEt PP5Jau4ng7DxM+OPmDGSJ2o1/g4J0ofONrioCqXjhWwQY55qwG5UeR3rYLgQFyyKK23j P1eg== 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=OCUBljU3l7bLi+2Mof6yKcdAJGAgEsp6V13IE4RoUsg=; fh=RsKNQde3hXRhkFNkXZDJxhxJUE2DI5qQDMHikPj4pmY=; b=c+HSNL1hX5GsZe76Rt3rMZi9Q7RpECPSgOUQixa3MZhwqt4PzL7Zgmz5AgOoB8grr9 SYSL13ODgOiei8uEwSciJMOQsUeCnQkpwEdV5cdr9dNaJuGnmiDpwWTNFhirMjnaOtWX Do4jnoGXQJGPyrXIkWLicbUq4+rnBQ05C0kzwqm2fzrNCH08+bSq8zONlj4IvXKSQrto 7NCbX2YNh7Ope8gt63bNqjzbLXXKpsMaHZp/BrSfN4YB9BIrM9/xEPmsRvB2EsP08efj vYFnIT5f3Ac2nzzADq5IRpXwkvoRB2PoLQAVv9tCt1elL4ru0nGGljSbgir8JnmoJnI+ 6mdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rSs3bZ4e; 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 q10-20020a05600c46ca00b004064b67428dsi1104117wmo.2.2023.10.25.22.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:33:38 -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=rSs3bZ4e; 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 3F03487B3B; Thu, 26 Oct 2023 07:31: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="rSs3bZ4e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F35D187B2C; Thu, 26 Oct 2023 07:31:49 +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-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 26B2387B09 for ; Thu, 26 Oct 2023 07:31:46 +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-x536.google.com with SMTP id 41be03b00d2f7-51f64817809so54607a12.1 for ; Wed, 25 Oct 2023 22:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698298304; x=1698903104; 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=OCUBljU3l7bLi+2Mof6yKcdAJGAgEsp6V13IE4RoUsg=; b=rSs3bZ4e4ihjZQtAf+mbfgRGVrkTNLFeiL6/7/5+e7gGKdYv1gA6+D3gqUD8csoy5a kgAwuiar+4WGZubt7+B6s5RY2s3AdR9ZQhGq7CkWJRngPf6JHKylddoRa3oMNysxGTui /1GQI1GTB7RBuFXq/YncAUsi7kQyUlgOzESIgL/04t5p3yBwTpBogsSedYT4xTYIJ3nG 17WVB6KpxQHZ8efEuDS7HEWDaEDXds7TOtGPGTLdgrNbJz36ndpASLaqejgN7bHQh1W/ R2EoAxHR5tdw/RjH8Cnq2dkTvyAMo2ofP5+YsoJKKb5hCmWdH6BtacM2Tr4hocoLpQgQ a+yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698298304; x=1698903104; 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=OCUBljU3l7bLi+2Mof6yKcdAJGAgEsp6V13IE4RoUsg=; b=EhhMgtTdo2IQlJq5klFQYKCI8eyyb31JJ0+wa+A3r9LoAexXOAJF8o0aNBUJOpou5W YrOpki9wFGxMrYBGU5uQm0pct7rCPY+iUE5BZTnJe9o/Gh0Hsw0HxiAdYmLpUMOeM77P 0Yis+ksuwnZ7k7yuGrBb6d6sgjzuoUntEaFkBxwauozi8p4b9BBwqcELXx8y5azffnnM vhpuayYSw01gjMznMexPhNSKzuf6DewzsyRTRe0F3hsuN+P7Xje08Nb8Uo6S0ZrsmQXN nqpmLBUHWkkUCMaJF8T8FkCNDUAL9botmM7G9/CWw7t8w/b2U4yqhSmTHXEEi+GTkVid +6XQ== X-Gm-Message-State: AOJu0YwTeCHsoPwkI3OULRmL+laH5P6Jmy4Gb5nRryfezxA6fgE9ukc5 XoLYbDPfgF7yGONvpmDa/0A8Ww== X-Received: by 2002:a05:6a20:e68c:b0:15c:b7ba:e9ba with SMTP id mz12-20020a056a20e68c00b0015cb7bae9bamr17078542pzb.0.1698298304383; Wed, 25 Oct 2023 22:31:44 -0700 (PDT) Received: from octopus.. ([2400:4050:c3e1:100:bca9:3af7:89e9:80b7]) by smtp.gmail.com with ESMTPSA id fa13-20020a056a002d0d00b006c06804cd39sm440715pfb.153.2023.10.25.22.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:31:44 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de, ilias.apalodimas@linaro.org Cc: jbx6244@gmail.com, u-boot@lists.denx.de, AKASHI Takahiro Subject: [RFC 11/13] fs: remove explicit efi configuration dependency Date: Thu, 26 Oct 2023 14:30:50 +0900 Message-Id: <20231026053052.622453-12-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026053052.622453-1-takahiro.akashi@linaro.org> References: <20231026053052.622453-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 --- fs/fs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 4cb4310c9cc2..70cdb594c4c8 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) {