From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D940DC433EF for ; Fri, 10 Dec 2021 06:51:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E574C830C5; Fri, 10 Dec 2021 07:50:55 +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="vequKxCF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8EF4582054; Fri, 10 Dec 2021 07:50:42 +0100 (CET) Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (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 D5BA783012 for ; Fri, 10 Dec 2021 07:50:37 +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-pj1-x1029.google.com with SMTP id j6-20020a17090a588600b001a78a5ce46aso8788306pji.0 for ; Thu, 09 Dec 2021 22:50:37 -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=bl8C1X+TOksXaJYBdDnrMAHxXq6nwVHHyloe9nAVxDA=; b=vequKxCFnJz1tBKdMetgjIdDsMGhAvpr4/DOW2ut2uJA3EL/7ttNEwoYpSYj8/85TA ohJRj9kGZqNgmd/b7LUHJOnCrK6E8nEfwx09hzIfO2SnJiyx7ZQ5sVAr4u6kNqfLz5Eb +ntQpPeRis2X3FENpmAHM/fhyTOB9k/ij0z3pc68MsUgzwcmkBra9pmbg0DRDQUXHFkL HM2Kr8ffdM59h0+fqk7nX4jd/GhgIBR/vpn5Qp5IZ/8w9oJtX+sEjyuZ1tbzz5LHlOXI F4Ck4GXDWM5hh7kkDO7X6WMCe8h3X+3lxemvlv3xa+IsvsIxOadT0g9t1hcBzEVegSoJ IW4Q== 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=bl8C1X+TOksXaJYBdDnrMAHxXq6nwVHHyloe9nAVxDA=; b=CJiyA7R1E3KKd19cfciN6/D7bv+yuKpvUSwwHjv7cpuj9Kkg6jF9hJSL6helMfzmMq C6xdS8ozVCO1+wE5C055XLAqwpcAvZXysWo7XfBe/s2B8ltYlCaavcVGpFKCYWRVsjfA MsKzu7vFvGbkUf7Z/Dp8QBAD6PfxIdkYXmC5UzSjgcmDQxlAg1Fumu+9oruQJltEvD/r 1TbsMcZ546XEqqRuHIMrSYzSpuJJbBvM71am87nRXF+C9k39vvY1SeEa4bZVNFI1wwiY 5W+anjdU+d1oBIstH5URPDhccmpwhWWEfPu3m3SHwETaAx1Ulb7D8cXJEq03yxllMACQ QOsQ== X-Gm-Message-State: AOAM530Z3TqYzrX5ZueuCj0yVp2WguucpemqELxzgN1/bWx3xQJQU5np Gk4u3tl0qKyMtQKjc1dd16FzcQ== X-Google-Smtp-Source: ABdhPJyefToOi7oFpN98Zv/oNPkQy5DwKKsPoDMWvd6FXDAzEzj1WXmAOFz7G1ZpA05C0vi5FBf9oQ== X-Received: by 2002:a17:90b:124d:: with SMTP id gx13mr21765472pjb.106.1639119036307; Thu, 09 Dec 2021 22:50:36 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 22:50:35 -0800 (PST) From: AKASHI Takahiro 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 Subject: [RFC v2 06/20] nvme: call device_probe() after scanning Date: Fri, 10 Dec 2021 15:49:33 +0900 Message-Id: <20211210064947.73361-7-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Simon Glass --- drivers/nvme/nvme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 3c529a2fce22..120a0f05a591 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -910,6 +910,10 @@ static int nvme_probe(struct udevice *udev) -1, 512, 0, &ns_udev); if (ret) goto free_id; + + ret = blk_probe_or_unbind(ns_udev); + if (ret) + goto free_id; } free(id); -- 2.33.0