Message ID | 20211004034430.41355-5-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1061900imy; Sun, 3 Oct 2021 20:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDazIkSOC/m7ip/+yfDxhmrfjHqxe/DTxxGuOjPFvmaszsfV1PCVsm4aHOFQLgCx7yqFtl X-Received: by 2002:a05:6402:450:: with SMTP id p16mr15408100edw.162.1633319142529; Sun, 03 Oct 2021 20:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319142; cv=none; d=google.com; s=arc-20160816; b=eMOnoR1i5+oTEm8GyLRSs9GliKmBt+l1+hHJr4Y0u8tjT+1RMNOPN6l7wVBcqfI8gS VGUwfdcFAvDHg+7whYiIRaW0HhLcjsUjaQ9bvkGJ3kg8vABfDs9vYXl+wVlyj5K6eImI KWwQpUFydyLw9xDhj++NsP12jU0u/O7Gbv2gnVURI+YLKJ5n5O/rp99ixq6CfMh5gUjG eM1WRqq++pWS68GohUK4oRl4UhZJ+N7lK7zuIxWmScR7zCYqbutnkHPbWzJ0TTHkClA5 UKxkfGsgcKCKWe0rFBf3bM0aStz1ts7u+XjpH+RNayF6plxdvoLWchK9+SY9kHmh7jd7 QfrQ== 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=7OKUttBQihWNcWyMidD1s3fR2TfffMDvW/RIGoolU3A=; b=Nd4Tp/FidhKvPL6K3uzKnGhLancxXx9Kqwe4DhkvuhZWIVQLgCRP4DQGLvug8JiXpT tu18KNvapUSCh4OY+nJUmkSxHHxvOqPFKmaqRX95DA31OYwLmwR8A0B2ol4LvXv5vwa8 PPbDhdooC0DHTk4Zh9BaoDAHfS5Gn5kAtridRXVm8sf6RYhxF9koJSmKXpsLYeIYWb1r WshCzLSmSAaxDH5I08Gain2pPN9HpiWBBeQGrBNZZtxnvl8LOQnAkOQzHFT/yKju12pO UDgBgmNJ2Ktl9jSEs4i31zcKRVIVcT61nNbjOzaXTh8z2fPXYbE8RLlnDnjdxUC6ERP5 SX/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yhx2jSJK; 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 rh9si19359378ejb.521.2021.10.03.20.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:42 -0700 (PDT) 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=Yhx2jSJK; 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 5F4428355C; Mon, 4 Oct 2021 05:45:29 +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="Yhx2jSJK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 86BE583560; Mon, 4 Oct 2021 05:45:25 +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-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (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 109D283530 for <u-boot@lists.denx.de>; Mon, 4 Oct 2021 05:45:20 +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-x52c.google.com with SMTP id r2so15237585pgl.10 for <u-boot@lists.denx.de>; Sun, 03 Oct 2021 20:45:19 -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=7OKUttBQihWNcWyMidD1s3fR2TfffMDvW/RIGoolU3A=; b=Yhx2jSJKmbpYi2oS+viwoKgQrnp1ooYfwa9xn8p5P7egTmV/oEY08qatmdjcIoxxCE yZGWrmdbNcP5ou2fAw/I0orLNWm6RJf2+URexuP82W67lGFlqRtYCfR6P4aeI98Er5Sz PmbwwPthLirH3EtcWSggCgHNEurF/kItjAJ2XL/P+Zo/bNBy35njD2Mx1UHE8gkNmPFC r8A2HXN9dvtIGlBK3FXg5BM7wYRlpK7DLlT8shte0UXsX+jGq95LH0rPMf4DtEN6hbKK rqHVtq/ksjXGjfmvVGPtFjYLKf3Og6sI9/ZhboUqqUsnlTRArJ1ethwjrWAireODvCDp +AUA== 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=7OKUttBQihWNcWyMidD1s3fR2TfffMDvW/RIGoolU3A=; b=BjjXLeqXPFYWA1Ejj4tLDZc5F+kCtTfENtOF683ay8pca0cdsi8YX5u6Skik0xzD4b aa1jEZp/GVBe+e3DeXgUPAGEEmx4j+swkPFA8bbtokKULqlk+gF2uxfvW4lC8GoVpnr5 Cjp089EuYvcnLLEfbcuLSsTBjfz07KyKWqsknAvSRwsjEJlZugDITJLjfHC0ICBKAJAC gt9FkHTMIIiZsERolNuCsIWc3kraeoRB0Mvo8X6pNZ9DCmde3WQM81YZreICCHY5ovrd 36sw0JaCNUlCb035VJ3QRaFDpA80DiwDHxac28lvQE0NZs3xagW2mzkMWRtimz2zMhtG 7gcA== X-Gm-Message-State: AOAM530JxIB/Ib1O6K9nu8vq4k4VuZdqA5yC55SsZ+uIs89EZVYlCoNZ LgCHc5rHFIsHICPtdPGL0hNSeQ== X-Received: by 2002:a63:e24b:: with SMTP id y11mr8885346pgj.452.1633319118461; Sun, 03 Oct 2021 20:45:18 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:17 -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 04/22] mmc: call device_probe() after scanning Date: Mon, 4 Oct 2021 12:44:12 +0900 Message-Id: <20211004034430.41355-5-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/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 3ee92d03ca23..07b5c1736439 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -418,6 +418,13 @@ int mmc_bind(struct udevice *dev, struct mmc *mmc, const struct mmc_config *cfg) bdesc->part_type = cfg->part_type; mmc->dev = dev; mmc->user_speed_mode = MMC_MODES_END; + + ret = device_probe(dev); + if (ret) { + device_unbind(dev); + return ret; + } + return 0; }
Every time a mmc bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- drivers/mmc/mmc-uclass.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.33.0