diff mbox series

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

Message ID 20191002195739.GA43446@nox.fritz.box
State New, archived
Headers show
Series [U-Boot] NVMe: do PCI enumerate before nvme scan | expand

Commit Message

Patrick Wildt Oct. 2, 2019, 7:57 p.m. UTC
Make sure that the PCI busses are enumerated before trying to
find a NVMe device.

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

Comments

Bin Meng Oct. 3, 2019, 1:07 a.m. UTC | #1
Hi Patrick,

On Thu, Oct 3, 2019 at 3:58 AM Patrick Wildt <patrick@blueri.se> wrote:
>
> Make sure that the PCI busses are enumerated before trying to
> find a NVMe device.
>
> Signed-off-by: Patrick Wildt <patrick@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 \

I think we need insert this to "nvme_boot=", just like "virtio_boot=" does.

>                         "nvme scan; " \
>                 "fi\0" \
>         \

Regards,
Bin
diff mbox series

Patch

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" \
 	\