From: Mathew McBride Date: Fri, 21 Jul 2023 04:39:24 +0000 (+0000) Subject: board: traverse: ten64: init nvme devices in late boot to ensure bootflow availability X-Git-Tag: v2025.01-rc5-pxa1908~903^2~7 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=080ea65692fd4ebf1040f67614c9e953f295baf5;p=u-boot.git board: traverse: ten64: init nvme devices in late boot to ensure bootflow availability 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 Reviewed-by: Peng Fan --- 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"); } +