From c3f64b163991f8a5ab78e5de62a520e6e4204349 Mon Sep 17 00:00:00 2001 From: Praveenkumar I Date: Wed, 8 Nov 2023 18:19:10 +0530 Subject: [PATCH] ipq9574: Skip PCIe enumeration during the board_init In Kernel, we are seeing rare PCIe enumeration failure and suspecting U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe enumeration during the board_init and added it after autoboot is stopped. Change-Id: I9c43b4da07ddd7e44f8c58a51dfd44701590f59b Signed-off-by: Praveenkumar I --- common/autoboot.c | 3 +++ common/board_r.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/autoboot.c b/common/autoboot.c index ee7fae22c8..3407fcd3d5 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -429,4 +429,7 @@ void autoboot_command(const char *s) puts("\nNet: "); eth_initialize(); #endif +#if defined(CONFIG_IPQ9574) + pci_init(); +#endif } diff --git a/common/board_r.c b/common/board_r.c index ceae5d07f1..eeb5caf944 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -249,7 +249,7 @@ static int initr_unlock_ram_in_cache(void) #ifdef CONFIG_PCI static int initr_pci(void) { -#ifndef CONFIG_DM_PCI +#if !defined(CONFIG_DM_PCI) && !defined(CONFIG_IPQ9574) pci_init(); #endif