Oliver O'Halloran 8cd6aacc64 powerpc/pcidn: Make VF pci_dn management CONFIG_PCI_IOV specific
The powerpc PCI code requires that a pci_dn structure exists for all
devices in the system. This is fine for real devices since at boot a pci_dn
is created for each PCI device in the DT and it's fine for hotplugged devices
since the hotplug slot driver will manage the pci_dn's devices in hotplug
slots. For SR-IOV, we need the platform / pcibios to manage the pci_dn for
virtual functions since firmware is unaware of VFs, and they aren't
"hot plugged" in the traditional sense.

Management of the pci_dn is handled by the, poorly named, functions:
add_pci_dev_data() and remove_pci_dev_data(). The entire body of these
functions is #ifdef`ed around CONFIG_PCI_IOV and they cannot be used
in any other context, so make them only available when CONFIG_PCI_IOV
is selected, and rename them to reflect their actual usage rather than
having them masquerade as generic code.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190821062655.19735-2-oohall@gmail.com
2020-01-23 21:31:19 +11:00
..
2019-11-18 22:27:51 +11:00
2019-09-14 00:01:14 +10:00
2019-07-13 16:08:36 -07:00
2019-11-19 19:38:38 +11:00
2018-06-07 10:23:33 -07:00
2019-11-18 22:27:52 +11:00
2016-03-01 19:27:20 +11:00
2019-08-27 13:03:35 +10:00
2019-08-30 09:52:57 +10:00
2019-05-03 01:20:26 +10:00
2019-12-03 13:58:22 -08:00
2019-07-13 16:08:36 -07:00
2019-09-05 14:22:41 +10:00
2019-07-13 16:08:36 -07:00
2016-06-14 13:58:26 +10:00
2019-07-13 16:08:36 -07:00
2019-07-13 16:08:36 -07:00
2019-07-13 16:08:36 -07:00
2019-11-30 14:35:43 -08:00
2018-05-25 12:04:43 +10:00
2019-11-30 14:35:43 -08:00
2019-07-16 19:23:24 -07:00
2018-07-30 22:48:21 +10:00
2019-05-01 16:45:05 +10:00
2019-07-29 09:34:27 +10:00
2019-07-13 16:08:36 -07:00
2019-09-20 11:48:06 -07:00