Message ID | 20211004034430.41355-2-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1061735imy; Sun, 3 Oct 2021 20:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrhADn/ELRR075+0cm6s20Aqek3IKO+i97LbWpjRJZpJyvHWzeIzSKbSmTOGKA3tGpEtNK X-Received: by 2002:a17:907:7212:: with SMTP id dr18mr11531832ejc.298.1633319114238; Sun, 03 Oct 2021 20:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319114; cv=none; d=google.com; s=arc-20160816; b=UnfD7bNdu3xxFIbsPhY4feNLEevhvuBNlA40Phw54hF9OODkloD2XtnzpNQlCQnLul pUTyS4uYyMoQzpPb7N9kBp0zBbADfiiYL0jJ1B/+StVqU5vNODkUyYeqNqUepIlN/6cc cXquvnhDUPPGvRNk4rO2laBq97ZbScy1EVfP2PJU7byrbRjTaHDNvLM+Nh1Jqv3OH8tF qcN2JCJLA0juglXlwDc0kPFNqnV9rpdSh/qNGzLh9UszsuoFMeIVqfpqC+TO7Q/dnFzd LJxkoWw3luhQ5lGIIQMXlHTewYEDiDpUQlixu0vbXCt0Qy9fwjqvrqV9D+1NWxmdLsif Nqpw== 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=AnfPfV+cavYk3G8dtEDjlVGQ1nDZUEBohAoM7azohRM=; b=l61wUt3vQtd0AYedzzmnQav2jWAODb8uma4Q3g5gRivQeSTKNjCU4lCCix7Q2F0Q2T oSKIymb4js1700o/R7y/03Y/fmjv/o0iudWIKb6KeSQ1PAKqbiWfXzF+7KZPp1rf2Hzi +oula5RBykJExxzVq5raYY+6vxJgW2f2pdpCigqyqQ+3PPQLHJ3O5HA121s6fiZQ0Mnz 3TYqk4Sd78yVwq3lnozS94jpiXLkrls+53ttRsgChzGhflGRWPndLp+2yQq4DHbdzTm9 hq0Mjc7gt6svt/8JMrTQUtXS3UucRdJNsF9J0qULqN2YVglbdvUIkXJ+h8pgkwhDce3B +nww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CXyaJuNC; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id mp36si23347674ejc.478.2021.10.03.20.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:14 -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=CXyaJuNC; 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 0CDFF8352E; Mon, 4 Oct 2021 05:45:13 +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="CXyaJuNC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E0A4E834FD; Mon, 4 Oct 2021 05:45:11 +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-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 877408352E for <u-boot@lists.denx.de>; Mon, 4 Oct 2021 05:45:07 +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-pf1-x42e.google.com with SMTP id k26so13330318pfi.5 for <u-boot@lists.denx.de>; Sun, 03 Oct 2021 20:45:07 -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=AnfPfV+cavYk3G8dtEDjlVGQ1nDZUEBohAoM7azohRM=; b=CXyaJuNCq/W7d/n9sEzubfGvwtyi9us5N2zVm/CCVKvKF8sc8JiibplscukzgOjBX8 5HMgppTwGsYcB1bUuhtSGM7byllhXVbZcxZ4pXBttO8Xsg1IQphmxO9O197op2MKHVua PkdX7cewRn9A3yAX1+z/0+yG9x/Yc/9gKyZQeKc9oBEhwEoymyb5qV8JAg68RUOKvmSm KzWUWppHmqoZUwbUn+uDZi+IteqetHN7f6Ro5AFh52RGkZB3BykDn/92Cg+2WNOo12Z/ SrOvAUED20zQ1mZcHsCMB+Gz+u66PckH+Muijv9drjGjwm0zfvRyeZZ9jYgzHEYMLFI+ Y/Gw== 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=AnfPfV+cavYk3G8dtEDjlVGQ1nDZUEBohAoM7azohRM=; b=R+GusSLZCYY8wwJeMBaF9xTpH/iMIn9wzjYi48AXA5UXOjMfe57Ot7sNsu2T3QxX7d 12R81eMycPBsAcwnwI0BCU6UiSpIxHGfBjQU4FSCdg97LvCU7sDEBaQdI4xGIapKLJCx 46bvRva1tIHDCjLStIdVXhySY8AX5GkYdk20RCrN7o3IUobscGi0vmVdH0BTeou2PZGV UVHKM5Lde2CefzZhO0Mk7CpZCHuxdYtenNkxAmehrRusMixxuPpvDf5MiQAlrc1EgtWk 9bp2guD9ca3NgLRI7GRkhDY9duUTXWJMbB03ipbGnEkrGAuUt4WnF+N6bu5Kd8tSDy9H YvGw== X-Gm-Message-State: AOAM533rzVrSv6aNM9MZsxEWjRx9NdKWqsftvyJjTWZwZ0z6euB+wrxy XKA0T76UnLr9xgi7gjYlDpY8qw== X-Received: by 2002:a05:6a00:2309:b0:444:6be1:c499 with SMTP id h9-20020a056a00230900b004446be1c499mr23561949pfh.62.1633319105867; Sun, 03 Oct 2021 20:45:05 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:05 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [resent RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC Date: Mon, 4 Oct 2021 12:44:09 +0900 Message-Id: <20211004034430.41355-2-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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: more tightly integrate UEFI disks to device model
|
expand
|
diff --git a/disk/part.c b/disk/part.c index a6a8f7052bd3..b330103a5bc0 100644 --- a/disk/part.c +++ b/disk/part.c @@ -427,7 +427,8 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str, * Always should be done, otherwise hw partition 0 will return stale * data after displaying a non-zero hw partition. */ - part_init(*dev_desc); + if ((*dev_desc)->if_type == IF_TYPE_MMC) + part_init(*dev_desc); #endif cleanup:
In blk_get_device_by_str(), the comment says: "Updates the partition table for the specified hw partition." Since hw partition is supported only on MMC, it makes no sense to do so for other devices. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- disk/part.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.33.0