From patchwork Wed Oct 17 07:32:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 149022 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp318818lji; Wed, 17 Oct 2018 00:31:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62PWhSBxAf6UnsEa7riVcyD2deyGAAWiwj4B7EVuyhF7oEpCWecYpqABced6vXJoUGuCT8R X-Received: by 2002:a17:906:29d7:: with SMTP id y23-v6mr26671309eje.156.1539761480439; Wed, 17 Oct 2018 00:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539761480; cv=none; d=google.com; s=arc-20160816; b=nSUJcV0t0dxKJj5mQ9C+VFx2Cz1Uy9krgJ2aWP77rr0q6NtMIiArFF3VmJawuUkNlQ LH2wyWuitKUHZI0WEiIFGPWO+smPvgdBcx4jhdhvD3SDtKwjBMX22l0OkuU4yjhcY5hy sdCCee47njzKLVH9sEC/40c/SNYPn98nEOrZjbyDvtzCkodUKvEM4SBu/G3rr9Z1B0Nw kuXWOhohVVl3GZUmb/WXds/4X1YKlKsdhssu0HEmMHNglmTal9nsrAsegPwQIluGQPI5 Qo4aMn6Rf+TcjClNWWFbmdq6ryubB54KyXQJOpla/yckJe2Rc7pl7gHhY1wH8tdJaJRm 9e/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=Z7vrsFQRPPm/OhJSISDj+gHGki9pBPq41PfP/KTNV7E=; b=jrNrQluc7dgTHCRoXO8W2BfWOc9DH9kMHSrBJ1oEiCJgcFAMqKa70E9BJu/xC/bdYF 2j5CK/ThqQqxGkbmvzbpz/dwlb7A4vngKGDdU8QjcA6vcam7kFMEPOBo8TTnCqxjiBc5 s/O4oIq7407c+xhiBIdlUke8cknm6FFOIdgFMPrjr4iaWG5r2vJYO4wV0kkeTgR7MbrC 8eYLQHneIqUKJqkiA0Gj4MtxPZlK7Ajks8D7id8JFj/W/JP12FsamE1MtPTKzopoaIab 5a3G/5xtWKsk2gNMapqSrYWYZ2nVMOgj8tz1OVyGtRlzmqmIC53BeNHYVcRXvqboDLjQ KRuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RVsrtaeb; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id y3-v6si3843899edv.448.2018.10.17.00.31.20; Wed, 17 Oct 2018 00:31:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RVsrtaeb; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 0D908C21E08; Wed, 17 Oct 2018 07:30:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E61E9C21C27; Wed, 17 Oct 2018 07:30:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5ACACC21C38; Wed, 17 Oct 2018 07:30:41 +0000 (UTC) Received: from mail-yb1-f193.google.com (mail-yb1-f193.google.com [209.85.219.193]) by lists.denx.de (Postfix) with ESMTPS id 65964C21DC1 for ; Wed, 17 Oct 2018 07:30:35 +0000 (UTC) Received: by mail-yb1-f193.google.com with SMTP id w7-v6so9957146ybm.7 for ; Wed, 17 Oct 2018 00:30:35 -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=mex2lAZQqyEAyMZm1ZRq4gKMdNSr795ar23/kt68Jng=; b=RVsrtaebzkdB+dc5MVfCDXCfXar27Yjfm7x+LmIbgjBABqlInJsGD+20gRkdB/Sy70 ZS7xLGYlvoD5C5jtt24rTjpTGmTcreyXtZ8uYfgzXpIGmMGhJx5MGKEkPgaVKY2vb5l/ uVzqMKFtwzs8kb3CQiEkaPquoqztgtEpdelNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mex2lAZQqyEAyMZm1ZRq4gKMdNSr795ar23/kt68Jng=; b=ljcFgrGTG6+xX6VY+ctGwO9zqCZHLGFLkqO1mK9hnomefUUeASDhB5o0Ew/u7rdZmA k4L4VhxaQ/CM0zHJSIYAWTuo+NRLAcAh/+fv3oeitEnQdbdCkqLib+F8t3kLHgSaE4N3 VfpL7rcBXi+f7tAvUU4mG8WRVvnrArt++Efmtta+/S0osRopz1OFP+4YYZjyHLtIEgZ7 C/cGJUaruIQ1zruSnqHSKx6tU5mnccJYW5qXdaZeEeCDaffZYa0r9O9AOAu49y6nisQh trdae5z49Gjtz+5eYOxfTVsGzRrKaK+tGzvRjQk1M43WVHi80zbp/1rgUot02dmLBKNi Ziew== X-Gm-Message-State: ABuFfohvK7JA5MSMe6HKFtb4wxxOAORd2gnP+6k9AmEkAexpbEBFI8qM rvm3wditlJXrond9cogjyGlXjw== X-Received: by 2002:a25:e6d7:: with SMTP id d206-v6mr13547618ybh.258.1539761434188; Wed, 17 Oct 2018 00:30:34 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id d136-v6sm4313302ywh.33.2018.10.17.00.30.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 00:30:33 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Wed, 17 Oct 2018 16:32:02 +0900 Message-Id: <20181017073207.13150-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181017073207.13150-1-takahiro.akashi@linaro.org> References: <20181017073207.13150-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/6] fs: update fs_dev_part in fs_set_blk_dev_with_part() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" As in the case of fs_set_blk_dev(), fs_set_blk_dev_with_part() should maintain and update fs_dev_part whenever called. Without this patch, a problem will come up when an efi binary associated with efi's BOOTxxxx variable is invoked via "bootefi bootmgr". Signed-off-by: AKASHI Takahiro --- fs/fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fs.c b/fs/fs.c index adae98d021ee..cb265174e2f2 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -365,6 +365,7 @@ int fs_set_blk_dev_with_part(struct blk_desc *desc, int part) for (i = 0, info = fstypes; i < ARRAY_SIZE(fstypes); i++, info++) { if (!info->probe(fs_dev_desc, &fs_partition)) { fs_type = info->fstype; + fs_dev_part = part; return 0; } }