Message ID | 20211001050228.55183-8-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp451272jaf; Thu, 30 Sep 2021 22:04:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiOMiWtVj+yW1NN61acj+I1cPnf7NbOxJBJjaReI75Z5N0U3PAO8W/c5j8OJkpVEtHjOmm X-Received: by 2002:a17:906:6dc1:: with SMTP id j1mr4005281ejt.324.1633064653479; Thu, 30 Sep 2021 22:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633064653; cv=none; d=google.com; s=arc-20160816; b=SfyThz8se4kuqYBoYvZQyv1wsfRFwv54kxXuV0TbW/gBlXajYccKq9VSOX5YADcgQe AqKZXOpT/Yi9s40enBuikY0Cj2dAG7K08B+9bEzCXwNkyxFg9IcWOZWELrOwBX45KrVS zB1eq+a3cMojt5tzc7KEg7+oAzYSMkhS1EyGyh22uTRJHZD3CyIrbm2Nu75lVBjThbxu Hlsx3HvrlH4SLhJ9qWDM7dnfJ5QjWBRGIusMi/GlWj91P6sHCIVAxrq7pRm1fKOHpADa d4XICOOeVcjJqjpeqPjVb5STFNo6hK0AclKJeDrH+7UmeDRmaKV756XD3VSIXxsrDeFv VN0Q== 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=xdsgO7AV30e5KFHeHq5+ylimf8gq5sHF9lbaXkdtz17tGPjRd26g1BHGy+qc517Vmm vvW1AYmWz4suguJpZ2FoIyfLT+FphY+v7JORLVTYj9dvu3PMWy3vTBcEX01ni6O7swsd W23cyPrbcbGfeFWVGtrWTvOiqGHThWilK+N5Kxt+pKjm8kdzj340CirtyO5lhs7yWU9w j1YkPqf7z5xhsYooxZFKZ6Sjjxw0dsjAZCJ4mhpRRaSjOAibQEvHGOGO2UmiBNo9L922 z1wAnd56gOWq25FdpGVczZbfMq+hK0k5wkHlA/kHY3GCu9KrQJwXgxZG4KcASe8fg6PI oRlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TtxJLefm; 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 m7si6855954edq.29.2021.09.30.22.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:04:13 -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=TtxJLefm; 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 0EAB581EE5; Fri, 1 Oct 2021 07:03:31 +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="TtxJLefm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BD2F82021; Fri, 1 Oct 2021 07:03:16 +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-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (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 DCF5C81F0C for <u-boot@lists.denx.de>; Fri, 1 Oct 2021 07:03:11 +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-pl1-x62a.google.com with SMTP id w11so5513927plz.13 for <u-boot@lists.denx.de>; Thu, 30 Sep 2021 22:03:11 -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=TtxJLefm5slwsfNe2UoWt/XZDieuaZ5pFU8pQdAw5Fv9s9S35qOltT/grE/lLbiTUz oRiFi/PX/6Q//MiWedF/kjcDa/JVM2wiKV/zDu92L/FaFys3DC5YvLS5RSSqXCK0ihrE WgVIVYmLIlG8aLPcfvaGGpbLyuCA9aGwZbxUqCXDvWOsG/aKnu87uBc7hfqoSCd7jhil 9WAvoaPLShqmEEJVZvosFUS6Eqo8yzgcebeeeEUf4NbMdfuQaw2iXJgYdXIX9IoE6emu SoAF8atqJ33higFLr0QmiBhhIZcfT8mSqoD8f4bfdEDTGMMk2PRnIO9615hMBa9uM40z br3A== 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=0KPXjjG3dWkiIVlf0oVp3N/tD5EoVLc10zvkLSgsX0r6ChSkIObepfWCbZdATEw5Bg qSbBRrcRe/sdX+e2c8Rf1A1OTKM/4HXqk0pwEo92u6IbUwfjIMiUzBKNw15DUqcpfmAN Z4Z5fs8xCsukiDg/uGc0ldv7XzyTVwfDcjI/zxxCPVexdy7rf2hBs03D/WY16EkmPV8Z qiBfwKCDSu54xkBypxdjH1WjZfyvnoKyZ0n66yNU7mwD1hY6+xj767cGD/OYL9105Pow J2c5MVwjIddyq6a8DgUNIWwn6xR9y0olRqF9Bzf5uB9PzLjsmko2OZ+WWhl7SDIRIH/2 AAKQ== X-Gm-Message-State: AOAM531YFNKbfQ0L3osoHHh8WqTDRj5Hh9ZrFs8/wKgrsC/4h2WSGFNP JWuCVMhoCB7EbiiD6gRlDOwpAw== X-Received: by 2002:a17:90b:3e84:: with SMTP id rj4mr17588984pjb.208.1633064590055; Thu, 30 Sep 2021 22:03:10 -0700 (PDT) Received: from localhost.localdomain (122-100-26-52m5.mineo.jp. [122.100.26.52]) by smtp.gmail.com with ESMTPSA id z8sm4615113pgc.53.2021.09.30.22.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:03:09 -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: [RFC 04/22] mmc: call device_probe() after scanning Date: Fri, 1 Oct 2021 14:01:51 +0900 Message-Id: <20211001050228.55183-8-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211001050228.55183-1-takahiro.akashi@linaro.org> References: <20211001050228.55183-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