Message ID | 20211210064947.73361-2-takahiro.akashi@linaro.org |
---|---|
State | Accepted |
Commit | 5d21dfec4ac92f8b38130660ed9c4d22712ecab5 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp2168479imb; Thu, 9 Dec 2021 22:50:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyrvC+vS2IYjC5eaTzp4P4jlbAtbuRl92jDryzWYluv/kaoY5HXtVhlfgglSkJ6xvduzyz X-Received: by 2002:a17:906:fca3:: with SMTP id qw3mr21953184ejb.285.1639119033491; Thu, 09 Dec 2021 22:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639119033; cv=none; d=google.com; s=arc-20160816; b=iE2rjMrS5GqfmTuG3b9vjVVBpHFiqC8Fhwsy10iowmANq9fBkHYKsvteQvY04jXd9N mwMj25e8DC/tT4wCOfqzgT0nOTZNRKzkkPAToi0LnzQXc5lCYyYCkrampTNHUkQIdyUW NafgV7WgcvhVnCYmPKAGpcnuIwokGNfnz2AREWpCniLc7jFfVz9KgbB3fcx40fLtwl6I C054deujMSRHWCO37ZWepzaRfRkokgTrdcKaVvQ51fmEf9JYjgvsKHvz1/U5lPGnPt8x +CoQk0ED7M+ZUGbI5kEPyU3gcPNmj9ZLNrmBuXuUYn+c+UUI+I3fzvopXvGWk8rIt7wk WFIA== 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=CE9Ru0+BtM/aB7yGhZ7xbEBAasBATDEKK3UGeDqn+m0=; b=UhHxUT2hlLvQWTplDoWCbRrjnP20UDTHNJUG/JJakfC+8AGC39OoXuBIuoFCdjZtoh Fh5J1dpB1IOaZQ2qP62HBEPCt6+0Eod32pgiDGOXTV4+CCWgyqMJQdGGYMh9cC51UkMG jb+ofGcJ6vrfqTRrDtT/WuDvS3fMkU5Fdh53e5UiO5ka7bpMyBUGfFQDOgbWz0dJfGNZ W+aKpBhT1jRN3nc1oCCuKv9tBwUPUqxlmuWMpeSsINbnHH/4E3mAgiZTrM/R9jUQQu1C odB/SQuvAwu4vkqzg7n6awZMD8TXvqcIO7nfVvDg3IetpbUqTpcfj8lq+tAv07JX/J8A e8jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hYcIJ4zm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s5si4298893ejn.407.2021.12.09.22.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 22:50:33 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hYcIJ4zm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9438B82F03; Fri, 10 Dec 2021 07:50:30 +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="hYcIJ4zm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D17D82F96; Fri, 10 Dec 2021 07:50:28 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 6C44C82982 for <u-boot@lists.denx.de>; Fri, 10 Dec 2021 07:50:23 +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-pf1-x429.google.com with SMTP id x5so7720282pfr.0 for <u-boot@lists.denx.de>; Thu, 09 Dec 2021 22:50:23 -0800 (PST) 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=CE9Ru0+BtM/aB7yGhZ7xbEBAasBATDEKK3UGeDqn+m0=; b=hYcIJ4zmeCNYWZAz9zTH0Dz4S4lcYZGsgIfBf2DUjtF3Jp4F7EbksnGipk8fKNhk6r dPt4+OHQIajINW4cM3azGcJ7uKYnaI2AiLNGP8FtyTuGvKqiptIJbhN1kdB4tb8wSHWv sdfX5JkWuP1NOgAKkmV7a9pwDvms0JoVPiZDfQeVe37e09XLJpP1oLjDDEmvpejn/zc9 PSNtb4tqQqzhBr8HSv+M+x+A7j4S4rFDa2Wq9kThInpwOMmWwlQFJgpHZaH0F8hJT8Q7 y3vLpKBhqPGxb/ORXxPcmsNnaZKz3x5CPN5PiPPIhius19qtptvflxfqVpbV82uk7fV4 1cfg== 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=CE9Ru0+BtM/aB7yGhZ7xbEBAasBATDEKK3UGeDqn+m0=; b=z1TAxQkHoh+Xlf1p2liqIugklCEYXWXfU/U1KJ474TVGYLj13cAAYW+2DP0GsPn/Eb CRXbui/sxQi9l15KijYgTAiAtjPDZ2R81OExIIHlcNk6wr9JgI5V7eNgWMamScpK2Wvh j3hZPGVUXkiIeOmchA9UGSXT9emYmTILSmGp2mHRlJimn2FrFzXacAAyaTWXPERmuDdy HSQqHNMKX7diHre0+qnP64YqWg+Grru5dNucSJw5KmII3lQN/W1cVEYrHCdumbpf0pfB lc2ifuszHUviImVW9K7WKM/U/uKc7+SZ+YgLYK53ds8EWeD2rjhd8DpOxK91XeDtnvoy 2sEA== X-Gm-Message-State: AOAM533nVULbZfkymxUS1kPiqhpjW8rTYC6hozjmpS+svZ0hQBfxCnCM UBP0hTNv+MuAMMqYQBt/gc0jDA== X-Received: by 2002:a05:6a00:b49:b0:49f:c8e0:51ff with SMTP id p9-20020a056a000b4900b0049fc8e051ffmr15936789pfo.36.1639119021703; Thu, 09 Dec 2021 22:50:21 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:75dd:4e0e:4542:936e]) by smtp.gmail.com with ESMTPSA id nn4sm1639035pjb.38.2021.12.09.22.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 22:50:21 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: masami.hiramatsu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [RFC v2 01/20] part: call part_init() in blk_get_device_by_str() only for MMC Date: Fri, 10 Dec 2021 15:49:28 +0900 Message-Id: <20211210064947.73361-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211210064947.73361-1-takahiro.akashi@linaro.org> References: <20211210064947.73361-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.38 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 driver model
|
expand
|
diff --git a/disk/part.c b/disk/part.c index fe1ebd4adf7e..c0556a41e57f 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: