diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-12-12 12:25:11 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-12-12 12:25:11 -0500 |
commit | 44b83b32e7c8d6fcd6a7e877ce3db65f6afdf87c (patch) | |
tree | 234c09cccd1e7a475598e79316cc61e3fd78c646 /drivers/pci/setup-res.c | |
parent | a1d9190d9682fd5cb8af811228f492b2ddd41366 (diff) | |
parent | 0722bdd2962a4a0f6d5e8973b0d274d147adacfb (diff) |
Merge branch 'pci/host-rockchip' into next
* pci/host-rockchip:
PCI: rockchip: Move the deassert of pm/aclk/pclk after phy_init()
PCI: rockchip: Split out rockchip_cfg_atu()
PCI: rockchip: Clean up bit definitions for PCIE_RC_CONFIG_LCS
PCI: rockchip: Correct the use of FTS mask
PCI: rockchip: Remove the pointer to L1 substate cap
PCI: rockchip: Specify the link capability
PCI: rockchip: Fix negotiated lanes calculation
PCI: rockchip: Add Kconfig COMPILE_TEST
PCI: rockchip: Mark RC as common clock architecture
PCI: rockchip: Provide captured slot power limit and scale
PCI: rockchip: Add three new resets as required properties
PCI: Don't attempt to claim shadow copies of ROM
PCI: designware: Check for iATU unroll support after initializing host
PCI: qcom: Fix pp->dev usage before assignment
PCI: designware-plat: Update author email address
PCI: layerscape: Fix drvdata usage before assignment
PCI: designware-plat: Change maintainer to Jose Abreu
Diffstat (limited to 'drivers/pci/setup-res.c')
-rw-r--r-- | drivers/pci/setup-res.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 045427336e11..4bc589ee78d0 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c | |||
@@ -141,6 +141,14 @@ int pci_claim_resource(struct pci_dev *dev, int resource) | |||
141 | return -EINVAL; | 141 | return -EINVAL; |
142 | } | 142 | } |
143 | 143 | ||
144 | /* | ||
145 | * If we have a shadow copy in RAM, the PCI device doesn't respond | ||
146 | * to the shadow range, so we don't need to claim it, and upstream | ||
147 | * bridges don't need to route the range to the device. | ||
148 | */ | ||
149 | if (res->flags & IORESOURCE_ROM_SHADOW) | ||
150 | return 0; | ||
151 | |||
144 | root = pci_find_parent_resource(dev, res); | 152 | root = pci_find_parent_resource(dev, res); |
145 | if (!root) { | 153 | if (!root) { |
146 | dev_info(&dev->dev, "can't claim BAR %d %pR: no compatible bridge window\n", | 154 | dev_info(&dev->dev, "can't claim BAR %d %pR: no compatible bridge window\n", |