Skip to content

Commit 43f25ad

Browse files
committed
Merge branch 'pci/controller/artpec6'
- Correct the artpec6_pcie_cpu_addr_fixup() parameter name, which takes a CPU address but called it "pci_addr" (Niklas Cassel) * pci/controller/artpec6: PCI: artpec6: Fix artpec6_pcie_cpu_addr_fixup() parameter name
2 parents e38de94 + 7903ffa commit 43f25ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pci/controller/dwc/pcie-artpec6.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ static void artpec6_pcie_writel(struct artpec6_pcie *artpec6_pcie, u32 offset, u
9494
regmap_write(artpec6_pcie->regmap, offset, val);
9595
}
9696

97-
static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr)
97+
static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_addr)
9898
{
9999
struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
100100
struct dw_pcie_rp *pp = &pci->pp;
101101
struct dw_pcie_ep *ep = &pci->ep;
102102

103103
switch (artpec6_pcie->mode) {
104104
case DW_PCIE_RC_TYPE:
105-
return pci_addr - pp->cfg0_base;
105+
return cpu_addr - pp->cfg0_base;
106106
case DW_PCIE_EP_TYPE:
107-
return pci_addr - ep->phys_base;
107+
return cpu_addr - ep->phys_base;
108108
default:
109109
dev_err(pci->dev, "UNKNOWN device type\n");
110110
}
111-
return pci_addr;
111+
return cpu_addr;
112112
}
113113

114114
static int artpec6_pcie_establish_link(struct dw_pcie *pci)

0 commit comments

Comments
 (0)