PCI: tegra: Implement PCA enable workaround
authorThierry Reding <treding@nvidia.com>
Fri, 25 Nov 2016 10:57:14 +0000 (11:57 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 7 Dec 2016 18:06:33 +0000 (12:06 -0600)
commit76245ca2dfa848bf044acccb5f0d1c07f6e42411
tree117b6ebf9e8a6f94704b1d5d43e82465017a8689
parent528925c4394f69744b88fc6506640fa8b6e6b56b
PCI: tegra: Implement PCA enable workaround

Tegra210's PCIe controller has a bug that requires the PCA (performance
counter) feature to be enabled. If this isn't done, accesses to device
configuration space will hang the chip for tens of seconds. Implement the
workaround.

Based on commit 514e19138af2 ("pci: tegra: implement PCA enable
workaround") from U-Boot by Stephen Warren <swarren@nvidia.com>.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/host/pci-tegra.c