Skip to content

Commit 07ae413

Browse files
nxpfranklibjorn-helgaas
authored andcommitted
PCI: intel-gw: Remove intel_pcie_cpu_addr()
Remove intel_pcie_cpu_addr(), the .cpu_addr_fixup() method, because the dwc core driver already handles address translation based on the devicetree description. [bhelgaas: this does require a minor dts change, but maintainer Lei Chuan Hua <[email protected]> confirms that the driver is only used internally to Maxlinear and internal users will update dts: https://lore.kernel.org/r/BY3PR19MB507667CE7531D863E1E5F8AEBDD82@BY3PR19MB5076.namprd19.prod.outlook.com] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Frank Li <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent b981217 commit 07ae413

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pci/controller/dwc/pcie-intel-gw.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
PCIE_APP_IRN_INTA | PCIE_APP_IRN_INTB | \
5858
PCIE_APP_IRN_INTC | PCIE_APP_IRN_INTD)
5959

60-
#define BUS_IATU_OFFSET SZ_256M
6160
#define RESET_INTERVAL_MS 100
6261

6362
struct intel_pcie {
@@ -381,13 +380,7 @@ static int intel_pcie_rc_init(struct dw_pcie_rp *pp)
381380
return intel_pcie_host_setup(pcie);
382381
}
383382

384-
static u64 intel_pcie_cpu_addr(struct dw_pcie *pcie, u64 cpu_addr)
385-
{
386-
return cpu_addr + BUS_IATU_OFFSET;
387-
}
388-
389383
static const struct dw_pcie_ops intel_pcie_ops = {
390-
.cpu_addr_fixup = intel_pcie_cpu_addr,
391384
};
392385

393386
static const struct dw_pcie_host_ops intel_pcie_dw_ops = {
@@ -409,6 +402,7 @@ static int intel_pcie_probe(struct platform_device *pdev)
409402
platform_set_drvdata(pdev, pcie);
410403
pci = &pcie->pci;
411404
pci->dev = dev;
405+
pci->use_parent_dt_ranges = true;
412406
pp = &pci->pp;
413407

414408
ret = intel_pcie_get_resources(pdev);

0 commit comments

Comments
 (0)