Thread (41 messages) 41 messages, 7 authors, 2018-06-04

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

STALE3044d

From: Christian Zigotzky <hidden>
Date: 2017-11-16 07:53:24

Hi All,

Just a small patch for the P.A. Semi Nemo board:

-----

diff -rupN a/drivers/pci/probe.c b/drivers/pci/probe.c
--- a/drivers/pci/probe.c    2017-11-16 08:18:40.504012010 +0100
+++ b/drivers/pci/probe.c    2017-11-16 08:17:22.044368405 +0100
@@ -2219,6 +2219,8 @@ static int only_one_child(struct pci_bus
     if (!parent || !pci_is_pcie(parent))
         return 0;
+    #ifndef CONFIG_PPC_PASEMI_NEMO
+    // SB600 for the Nemo board has non-zero devices on non-root bus.
     if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT)
         return 1;
@@ -2231,6 +2233,7 @@ static int only_one_child(struct pci_bus
     if (parent->has_secondary_link &&
         !pci_has_flag(PCI_SCAN_ALL_PCIE_DEVS))
         return 1;
+    #endif
     return 0;
 }

----

This is my first patch on this mailing list. Sorry if it isn't in a good quality. I am still learning. I hope you can add it.

Thanks,
Christian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help