diff mbox series

[U-Boot,u-boot-marvell,6/6] arm: mvebu: turris_omnia: call pci_init from board init code

Message ID 20190510031029.23739-7-marek.behun@nic.cz
State Superseded
Delegated to: Stefan Roese
Headers show
Series More fixes for Turris Omnia | expand

Commit Message

Marek Behún May 10, 2019, 3:10 a.m. UTC
We always want to enumerate PCIe devices, because withouth this they
won't work in Linux.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
---
 board/CZ.NIC/turris_omnia/turris_omnia.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefan Roese May 10, 2019, 8:16 a.m. UTC | #1
On 10.05.19 05:10, Marek Behún wrote:
> We always want to enumerate PCIe devices, because withouth this they
> won't work in Linux.
> 
> Signed-off-by: Marek Behún <marek.behun@nic.cz>
> ---
>   board/CZ.NIC/turris_omnia/turris_omnia.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
> index cddde50b96..db99db0ccf 100644
> --- a/board/CZ.NIC/turris_omnia/turris_omnia.c
> +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
> @@ -412,6 +412,9 @@ int board_late_init(void)
>   	set_regdomain();
>   	handle_reset_button();
>   #endif
> +#ifdef CONFIG_PCI_MVEBU
> +	pci_init();
> +#endif

Do you have CONFIG_PCI_MVEBU enabled on this board defconfig? If yes,
then please remove the #ifdef here.

Thanks,
Stefan
diff mbox series

Patch

diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index cddde50b96..db99db0ccf 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -412,6 +412,9 @@  int board_late_init(void)
 	set_regdomain();
 	handle_reset_button();
 #endif
+#ifdef CONFIG_PCI_MVEBU
+	pci_init();
+#endif
 
 	return 0;
 }