[Skiboot] [PATCH v11 19/23] core/pci: Use PCI slot in enumeration
ruscur at russell.cc
Thu Jun 2 14:12:17 AEST 2016
On Fri, 2016-05-20 at 16:32 +1000, Gavin Shan wrote:
> During PCI enumeration, the root complex's link and fundamental
> reset are carried out by PHB's callbacks which are replaced by
> the corresponding PCI slot's callbacks. Also, the hotplug related
> device node properties are populated based on the PCI slot info
> that is included in PCI slot now.
> This uses PCI slot in enumeration:
> * Use PCI slot's callbacks for fundamental reset and link status
> retrieval in PCI enumeration.
> * Simplify the code by removing traditional PCI/PCI-x related
> logic as we don't have PCI/PCI-X root complex.
> * Replace pci_add_slot_properties() with pci_slot_add_properties()
> to populate PCI slot properties in device-tree.
> * PHB is always not hotpluggable. No hotpluggable properties in
> its device node are needed.
> * Remove "struct pci_slot_info" definition as its info is included
> in "struct pci_slot".
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
Reviewed-by: Russell Currey <ruscur at russell.cc>
More information about the Skiboot