PCI: designware: Wait for iATU enable
authorJoao Pinto <Joao.Pinto@synopsys.com>
Wed, 17 Aug 2016 18:26:07 +0000 (13:26 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Aug 2016 19:43:41 +0000 (14:43 -0500)
commitd8bbeb39fbf3ff06b6adae9d336f44bee4e3f3ec
treeced1d20fcf583996ac48bf4b1e92357d0d357738
parentc388de1c4f0e5da3e96b49efb0388e2a0d34e079
PCI: designware: Wait for iATU enable

Add a loop with timeout to make sure the iATU is really enabled before
subsequent config and I/O accesses.

[bhelgaas: split to separate patch, use dev_err() instead of dev_dbg()]
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-designware.c