]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: tegra: Remove misleading PHYS_OFFSET
authorThierry Reding <treding@nvidia.com>
Tue, 9 Feb 2016 14:52:33 +0000 (15:52 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Mar 2016 21:42:56 +0000 (15:42 -0600)
BARs are disabled when the size register is 0, so it's misleading to write
a base address into the start register.

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

index 7bda73bf7c5e08639a855a41c1e9cadc7ace4df4..68d1f41b3cbfb85750cae417739f7ff076ee4202 100644 (file)
@@ -771,7 +771,7 @@ static void tegra_pcie_setup_translations(struct tegra_pcie *pcie)
        afi_writel(pcie, 0, AFI_FPCI_BAR5);
 
        /* map all upstream transactions as uncached */
-       afi_writel(pcie, PHYS_OFFSET, AFI_CACHE_BAR0_ST);
+       afi_writel(pcie, 0, AFI_CACHE_BAR0_ST);
        afi_writel(pcie, 0, AFI_CACHE_BAR0_SZ);
        afi_writel(pcie, 0, AFI_CACHE_BAR1_ST);
        afi_writel(pcie, 0, AFI_CACHE_BAR1_SZ);