Skip to contentSkip to conversation

PCI: tegra: Remove stray call to pci_ioremap_io()

PATCH In review Thierry Reding 3 participants 3 messages Aug 1, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: tegra: Remove stray call to pci_ioremap_io()

From: Thierry Reding <[email protected]>

This was introduced by an unfortunate interaction between commits 45c64b6ac4ef ("PCI: tegra: Request host bridge window resources with core function") and e6e9f471f5fe ("PCI: tegra: Use generic pci_remap_iospace() rather than ARM32-specific one").

---
 drivers/pci/host/pci-tegra.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/host/pci-tegra.c +0 -2
index 2544937620a5..6de0757b11e4 100644
@@ -621,8 +621,6 @@ static int tegra_pcie_setup(int nr, struct pci_sys_data *sys)
 	if (err < 0)
 		return err;
 
-	pci_ioremap_io(pcie->pio.start, pcie->io.start);
-
 	pci_add_resource_offset(&sys->resources, &pcie->pio, sys->io_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->mem, sys->mem_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->prefetch,
Signature · 1 line
2.9.0
maintainer Acked-by Tested-by on v1 1/1
#1 lore raw
Quoted 17 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This was introduced by an unfortunate interaction between commits 45c64b6ac4ef ("PCI: tegra: Request host bridge window resources with core function") and e6e9f471f5fe ("PCI: tegra: Use generic pci_remap_iospace() rather than ARM32-specific one").

---
 drivers/pci/host/pci-tegra.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/host/pci-tegra.c +0 -0
index 2544937620a5..6de0757b11e4 100644

drivers/pci/host/pci-tegra.c static int tegra_pcie_setup(int nr, struct pci_sys_data *sys) · line 626

Quoted 8 lines
drivers/pci/host/pci-tegra.c +0 -2
@@ -621,8 +621,6 @@ static int tegra_pcie_setup(int nr, struct pci_sys_data *sys)
 	if (err < 0)
 		return err;
 
-	pci_ioremap_io(pcie->pio.start, pcie->io.start);
-
 	pci_add_resource_offset(&sys->resources, &pcie->pio, sys->io_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->mem, sys->mem_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->prefetch,

Fixes booting on some Tegra boards for me.

Cheers
Jon

#2 lore raw
In reply to Thierry Reding
Quoted 8 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This was introduced by an unfortunate interaction between commits 45c64b6ac4ef ("PCI: tegra: Request host bridge window resources with core function") and e6e9f471f5fe ("PCI: tegra: Use generic pci_remap_iospace() rather than ARM32-specific one").

Thanks, I re-did the merge and fixed my mistake.

Quoted 24 lines
---
 drivers/pci/host/pci-tegra.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/host/pci-tegra.c +0 -2
index 2544937620a5..6de0757b11e4 100644
@@ -621,8 +621,6 @@ static int tegra_pcie_setup(int nr, struct pci_sys_data *sys)
 	if (err < 0)
 		return err;
 
-	pci_ioremap_io(pcie->pio.start, pcie->io.start);
-
 	pci_add_resource_offset(&sys->resources, &pcie->pio, sys->io_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->mem, sys->mem_offset);
 	pci_add_resource_offset(&sys->resources, &pcie->prefetch,
Signature · 6 lines
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html