Skip to contentSkip to conversation

board: ls1043ardb: force PCI device enumeration

PATCH In review Martin Schiller 3 participants 3 messages Nov 23, 2021 – Dec 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: ls1043ardb: force PCI device enumeration

Commit eb1986804d1d ("configs: enable DM_ETH support for LS1043ARDB") resulted in the PCI bus no longer being implicitly enumerated.

However, this is necessary for the fdt pcie fixups to work.

Therefore, similar to commit 8b6558bd4187 ("board: ls1088ardb:
transition to DM_ETH"), pci_init() is now called in the board_init() routine when CONFIG_DM_ETH is active.

CC Priyanka Jain <[email protected]>
CC Camelia Groza <[email protected]>
---
 board/freescale/ls1043ardb/ls1043ardb.c | 4 ++++
 1 file changed, 4 insertions(+)
board/freescale/ls1043ardb/ls1043ardb.c +4 -0
index beef26b084..1764c9336c 100644
@@ -219,6 +219,10 @@ int board_init(void)
 	ppa_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+	pci_init();
+#endif
+
 #ifdef CONFIG_U_QE
 	u_qe_init();
 #endif
Signature · 1 line
2.20.1
Acked-by Camelia Groza on v1 1/1
#1 lore raw
Quoted 31 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Martin Schiller
Sent: Tuesday, November 23, 2021 8:28
To: [email protected]
Cc: Martin Schiller <[email protected]>; Priyanka Jain <[email protected]>; Camelia Alexandra Groza <[email protected]>
Subject: [PATCH] board: ls1043ardb: force PCI device enumeration

Commit eb1986804d1d ("configs: enable DM_ETH support for LS1043ARDB") resulted in the PCI bus no longer being implicitly enumerated.

However, this is necessary for the fdt pcie fixups to work.

Therefore, similar to commit 8b6558bd4187 ("board: ls1088ardb:
transition to DM_ETH"), pci_init() is now called in the board_init() routine when CONFIG_DM_ETH is active.

CC Priyanka Jain <[email protected]>
CC Camelia Groza <[email protected]>
---
 board/freescale/ls1043ardb/ls1043ardb.c | 4 ++++
 1 file changed, 4 insertions(+)
board/freescale/ls1043ardb/ls1043ardb.c +0 -0
index beef26b084..1764c9336c 100644

board/freescale/ls1043ardb/ls1043ardb.c int board_init(void) · line 228

Quoted 10 lines
board/freescale/ls1043ardb/ls1043ardb.c +4 -0
@@ -219,6 +219,10 @@ int board_init(void)
 	ppa_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+	pci_init();
+#endif
+
 #ifdef CONFIG_U_QE
 	u_qe_init();
 #endif

Thanks for the fix.

Reviewed-by Priyanka Jain
#2 lore raw
Quoted 55 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Camelia Alexandra Groza (OSS)
Sent: Tuesday, November 23, 2021 4:04 PM
To: Martin Schiller <[email protected]>; [email protected]
Cc: Priyanka Jain <[email protected]>
Subject: RE: [PATCH] board: ls1043ardb: force PCI device enumeration

Quoted 32 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Martin Schiller
Sent: Tuesday, November 23, 2021 8:28
To: [email protected]
Cc: Martin Schiller <[email protected]>; Priyanka Jain <[email protected]>; Camelia Alexandra Groza <[email protected]>
Subject: [PATCH] board: ls1043ardb: force PCI device enumeration

Commit eb1986804d1d ("configs: enable DM_ETH support for LS1043ARDB") resulted in the PCI bus no longer being implicitly enumerated.

However, this is necessary for the fdt pcie fixups to work.

Therefore, similar to commit 8b6558bd4187 ("board: ls1088ardb:
transition to DM_ETH"), pci_init() is now called in the board_init() routine when CONFIG_DM_ETH is active.

CC Priyanka Jain <[email protected]>
CC Camelia Groza <[email protected]>
---
 board/freescale/ls1043ardb/ls1043ardb.c | 4 ++++
 1 file changed, 4 insertions(+)
board/freescale/ls1043ardb/ls1043ardb.c +0 -0
index beef26b084..1764c9336c 100644

board/freescale/ls1043ardb/ls1043ardb.c int board_init(void) · line 228

Quoted 10 lines
board/freescale/ls1043ardb/ls1043ardb.c +4 -0
@@ -219,6 +219,10 @@ int board_init(void)
 	ppa_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+	pci_init();
+#endif
+
 #ifdef CONFIG_U_QE
 	u_qe_init();
 #endif

Thanks for the fix.

Quoted 1 line