[U-Boot] [PATCH] NVMe: do PCI enumerate before nvme scan

Patrick Wildt patrick at blueri.se
Wed Oct 2 19:57:39 UTC 2019


Make sure that the PCI busses are enumerated before trying to
find a NVMe device.

Signed-off-by: Patrick Wildt <patrick at blueri.se>

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 3570a32dff..563f1bf5fa 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -185,6 +185,7 @@
 	"nvme_init=" \
 		"if ${nvme_need_init}; then " \
 			"setenv nvme_need_init false; " \
+			BOOTENV_RUN_PCI_ENUM \
 			"nvme scan; " \
 		"fi\0" \
 	\


More information about the U-Boot mailing list