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 BB967EB64DD for ; Fri, 21 Jul 2023 04:41:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D9A9867E7; Fri, 21 Jul 2023 06:40:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=traverse.com.au header.i=@traverse.com.au header.b="eHzVo16L"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="JNrT/u79"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E3CF5867E7; Fri, 21 Jul 2023 06:40:35 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 97651867D9 for ; Fri, 21 Jul 2023 06:40:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matt@traverse.com.au Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id BECF13200F49; Fri, 21 Jul 2023 00:40:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 21 Jul 2023 00:40:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1689914431; x= 1690000831; bh=cYbCoRNW9A5YDBS8sSkGBQMmHOTId6YtXvcMdPXbUtw=; b=e HzVo16La7JLXQPPOSzB4Fpg9ARXsL67HC9oHkBaZcZeAkZ+HzYGegR2q2RHt+rAO GkNMhzc/ZoB0W2qpk+0UfuWJ+3xP0DdYwWo3kYqH4yDExKqI0KI12cFR8qitxYfy xOKWxahrE1s0eEULFBTt5fgQDp0exbis2505p0tcsF54/UBtF//Cw6tLd7ELw69W PxtCCEldSNRCvV4gZMncFnN2+Utd/4ZQhqLR2aWM8wtWgSde3zJd/HSOW0uCKpba FqMi3XMvzBs05sLs0AegfNjJdsIzB8ppoMJdx5iHnIeE8HJpL41+nHKmId0mLcft 6vu1df6fdAonvm6I/xjOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1689914431; x= 1690000831; bh=cYbCoRNW9A5YDBS8sSkGBQMmHOTId6YtXvcMdPXbUtw=; b=J NrT/u797q7F0fe9CxoSbvH1YGCCmk6kfYF3KauqBrfQXmdwChtRc9cA+9d738Y97 50mj0RdYorgTlDhK2tkpsZECPQQ+T0iojk3CDVp7VLaWkkNWnJMw9NzpCI0K9oto 9kYNzkix4D3JypSYiRx9Kp4yBmzHAsJpYfmN9Ss8ZMv86QpRvv+wGGKvenES7+3t 3S9Xypm0uDOEPBHAUcYQS7NMrZqUCP1TXG+Ndehkr2aDzbJBElIW5AADg8Hgabnl b1f+3ERNfoXKKw6R97lPX8X8/YeXAJ08ap4Riv4F8kLtwMU5NnK/z6oOfquNuq4v SoopbEmSk9KZEtsFW1SdQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedugdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforghthhgv ficuofgtuehrihguvgcuoehmrghtthesthhrrghvvghrshgvrdgtohhmrdgruheqnecugg ftrfgrthhtvghrnhepieeifeehieeiueeludefgfdtveefjeffteegvdevudffffelheej tdejgeelleegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh homhepmhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghu X-ME-Proxy: Feedback-ID: i426947f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Jul 2023 00:40:29 -0400 (EDT) From: Mathew McBride To: u-boot@lists.denx.de, Peng Fan , Ioana Ciornei Cc: Mathew McBride Subject: [PATCH 09/16] board: traverse: ten64: init nvme devices in late boot to ensure bootflow availability Date: Fri, 21 Jul 2023 04:39:24 +0000 Message-Id: <20230721043931.14188-10-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20230721043931.14188-1-matt@traverse.com.au> References: <20230721043931.14188-1-matt@traverse.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Ensure nvme devices are scanned before reaching the shell, otherwise extra user intervention ("nvme scan") is required before they are visible to bootdev/bootflow. Signed-off-by: Mathew McBride --- board/traverse/ten64/ten64.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c index df44baf24f..39f0d107cd 100644 --- a/board/traverse/ten64/ten64.c +++ b/board/traverse/ten64/ten64.c @@ -31,6 +31,7 @@ #include #include #include +#include #include @@ -184,6 +185,11 @@ void fdt_fixup_board_enet(void *fdt) int fsl_board_late_init(void) { ten64_board_retimer_ds110df410_init(); + + /* Ensure nvme storage devices are available to bootflow */ + if (IS_ENABLED(CONFIG_NVME)) + nvme_scan_namespace(); + return 0; } @@ -444,3 +450,4 @@ static void ten64_board_retimer_ds110df410_init(void) puts("OK\n"); } + -- 2.30.1