PCI: designware: Ensure ATU is enabled before IO/conf space accesses
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Fri, 18 Dec 2015 12:38:55 +0000 (14:38 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Jan 2016 17:50:21 +0000 (11:50 -0600)
commit17209dfb35a228e597a387bfc83b68093b247f78
treee1285e1c10cd9eade67b3b2b81ceea959c5a68d3
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PCI: designware: Ensure ATU is enabled before IO/conf space accesses

Read back the ATU CR2 register to ensure ATU programming is effective
before any subsequent I/O or config space accesses.

Without this, PCI device enumeration is unreliable.

[bhelgaas: changelog, comment]
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
drivers/pci/host/pcie-designware.c