mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'pci/resource' into next
* pci/resource:
microblaze/PCI: Remove pcibios_setup_bus_{self/devices} dead code
ARC: Remove empty kernel/pcibios.c
PCI: Add a generic weak pcibios_align_resource()
PCI: Add a generic weak pcibios_fixup_bus()
This commit is contained in:
commit
9198407e23
16 changed files with 22 additions and 265 deletions
|
|
@ -2344,6 +2344,15 @@ void pcie_bus_configure_settings(struct pci_bus *bus)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(pcie_bus_configure_settings);
|
||||
|
||||
/*
|
||||
* Called after each bus is probed, but before its children are examined. This
|
||||
* is marked as __weak because multiple architectures define it.
|
||||
*/
|
||||
void __weak pcibios_fixup_bus(struct pci_bus *bus)
|
||||
{
|
||||
/* nothing to do, expected to be removed in the future */
|
||||
}
|
||||
|
||||
unsigned int pci_scan_child_bus(struct pci_bus *bus)
|
||||
{
|
||||
unsigned int devfn, pass, max = bus->busn_res.start;
|
||||
|
|
|
|||
|
|
@ -234,6 +234,19 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* We don't have to worry about legacy ISA devices, so nothing to do here.
|
||||
* This is marked as __weak because multiple architectures define it; it should
|
||||
* eventually go away.
|
||||
*/
|
||||
resource_size_t __weak pcibios_align_resource(void *data,
|
||||
const struct resource *res,
|
||||
resource_size_t size,
|
||||
resource_size_t align)
|
||||
{
|
||||
return res->start;
|
||||
}
|
||||
|
||||
static int __pci_assign_resource(struct pci_bus *bus, struct pci_dev *dev,
|
||||
int resno, resource_size_t size, resource_size_t align)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue