Message ID | 20211004034430.41355-6-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 10csp1061958imy; Sun, 3 Oct 2021 20:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo3L/i1J6DYNbhtU8nfar4diDSehI47qxkGnmkhTCZ/kgS+rALvDszJeALqZF/5qlh5pDF X-Received: by 2002:a50:e04e:: with SMTP id g14mr16021720edl.168.1633319153084; Sun, 03 Oct 2021 20:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319153; cv=none; d=google.com; s=arc-20160816; b=HkC65vDlZP5Sr7L0i6Vwmg2RUe6ZxTwKUUZD6I3oLYkuWg+Kfhdjl3OndINUiANTN/ WZdjsSus52Iw2Ed5dRmD4nB0Q0tvQLDaGkxJNEDkNrBR0xOjQ71oZoas0KuH9cFROs9Z 5Vn/qlyka1BbEXawOz3ILoFvyyLYLoX63lxicNarXuqomiFN8FRiILXug02BJYbrmhj4 mclqE8dj2uemOshn1UI8tFduAYnsNLS1FpIv3mPvNw/nCvXS85G2/jZr616PWCLo4GD/ ypjM+vZsvYr4cTnpJvN3zbRFztX5/V0P1FZAy2m/1mqQt4iOxKKb6q6WFaCuVYn6E9KH B5Ig== 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=O9pL0Hmq9ZA289/TrCWhV3wB8eKqhp6uxXQgYO+xSj0=; b=INtt+fdMi8fu6iSrbqXqRyTJ13qKdWpz9pJVxw5vcnImd86HIw98lhGYW8NKTAdS8i bqDetn44qoAQKrfeY0GLZIWdkeBoDHH8ACEK/Yp+TRrMxzue4naf9TA6kU1lIuPstjNO 8enjrQk6nvKFuszETIQ4Fo9akbDxxwgSwAYKZIVVp7hGHTakNmX3wdVdpw/fqA0N0xnL Dy04f8dVRee5hBX2M0gE8Msv8T8vsqLn+4CyWoPP10rLJ0fFoWtAUmIAzU433b+FCB/4 Ds5uk9jWIeUX3EpTSV6wS89OLuE8Z0Tj0NXhmj4gnaFer17Wi11466FmvNLwmymx4uve S0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="N/JHdGTJ"; 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 d15si15254314edj.560.2021.10.03.20.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:53 -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="N/JHdGTJ"; 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 A0B0D8355E; Mon, 4 Oct 2021 05:45:33 +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="N/JHdGTJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBA9683539; Mon, 4 Oct 2021 05:45:28 +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-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) (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 8A3808355B for <u-boot@lists.denx.de>; Mon, 4 Oct 2021 05:45:24 +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-x432.google.com with SMTP id m26so74714pff.3 for <u-boot@lists.denx.de>; Sun, 03 Oct 2021 20:45:24 -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=O9pL0Hmq9ZA289/TrCWhV3wB8eKqhp6uxXQgYO+xSj0=; b=N/JHdGTJEMYUcFzW/YLVPfzYu5BB+Ckzf8I61fgs2gFKEZTLm/fAN0fcbaCg8nEJ1r 8st5pnYLVsdpaArldbiBGhYA7k6f0rdxOFlmJcdK13tnRXiOaKQnwPCHLJLtf3RP8IXX CkdvIfBQQa5Vb7jMzmzFwsJQwuOrGysUIKz0fzGj2bgLhymYjcsPbrTWTAaJfFBxYLr7 tlGyVpwbbNx7wlTxGDLQj9g2GcJyoQALfhB2dF/wxUauVNQxKpEK4UmALBB6XSvfJeLs iJ3XHINPVKPI6ffBQL82cCGTQeveDZNpT30KLzWPti64Nzsba/+9PA1DFjh033U8ntV3 LxSw== 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=O9pL0Hmq9ZA289/TrCWhV3wB8eKqhp6uxXQgYO+xSj0=; b=1+9pW0Q4qRpZtHiKNgZu62wiiwtZSwEkh5DSqtrjlYA7Vplsg6MBJb9uKGXWiTUO57 vUBdM7xFy4VA2YtZ0WwINTv32lmZlJAj4grJFzEfzA4RyN46b+O9sK+F2gNLpRP54b8W m91pm3n4c841PBixfsoMTsLYQrT6PkALabkz0+wEB2PJtFuWh7HUQGjHiMLCOKvbpEuu n8sVZYBs5bg3KR0KmpP9aJFt1uq29Djfgt+kBT8kw+O+a0+d4S1Gxj1eJU5VimgRA+Je UBnUBEVndKhdKv4AZgpcPkNs60uAnkAxt/Zv/xRWjUz793pcxTnwPOyuA5wLS2XXL8t7 Ptlg== X-Gm-Message-State: AOAM533dqVGPgjIpl1vFO8mLwNnzyRm4K9Uu/lJ/dAh6lbU+I9+vWQgA //L5v+KU//X47qq+/Sr04BJ6uA== X-Received: by 2002:a63:4d20:: with SMTP id a32mr9012153pgb.247.1633319122906; Sun, 03 Oct 2021 20:45:22 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:22 -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 05/22] nvme: call device_probe() after scanning Date: Mon, 4 Oct 2021 12:44:13 +0900 Message-Id: <20211004034430.41355-6-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/nvme/nvme.c b/drivers/nvme/nvme.c index f6465ea7f482..975bbc6dc3b7 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -909,6 +909,12 @@ static int nvme_probe(struct udevice *udev) -1, 512, 0, &ns_udev); if (ret) goto free_id; + + ret = device_probe(ns_udev); + if (ret) { + device_unbind(ns_udev); + goto free_id; + } } free(id);
Every time a nvme 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/nvme/nvme.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.33.0