PCI: Allow root and child buses to have different pci_ops
authorRob Herring <robh@kernel.org>
Fri, 21 Aug 2020 03:53:41 +0000 (21:53 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 7 Sep 2020 09:30:38 +0000 (10:30 +0100)
commit07e292950b9368518c659c4d5f1dca4bf55779bd
tree7ac4745e9af29398deaa967c2e1fa9cf885895f6
parent16270a92355722e387e9ca19627c5a4d7bae1354
PCI: Allow root and child buses to have different pci_ops

PCI host bridges often have different ways to access the root and child
bus config spaces. The host bridge drivers have invented their own
abstractions to handle this. Let's support having different root and
child bus pci_ops so these per driver abstractions can be removed.

Link: https://lore.kernel.org/r/20200821035420.380495-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
include/linux/pci.h