Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b30d936f authored by Gavin Shan's avatar Gavin Shan Committed by Michael Ellerman
Browse files

powerpc/powernv/ioda1: Rename pnv_pci_ioda_setup_dma_pe()



This renames pnv_pci_ioda_setup_dma_pe() to pnv_pci_ioda1_setup_dma_pe()
as it's the counter-part of IODA2's pnv_pci_ioda2_setup_dma_pe().
No logical changes introduced.

Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 99451551
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2029,8 +2029,9 @@ static struct iommu_table_ops pnv_ioda2_iommu_ops = {
	.free = pnv_ioda2_table_free,
};

static void pnv_pci_ioda_setup_dma_pe(struct pnv_phb *phb,
				      struct pnv_ioda_pe *pe, unsigned int base,
static void pnv_pci_ioda1_setup_dma_pe(struct pnv_phb *phb,
				       struct pnv_ioda_pe *pe,
				       unsigned int base,
				       unsigned int segs)
{

@@ -2619,7 +2620,7 @@ static void pnv_ioda_setup_dma(struct pnv_phb *phb)
		if (phb->type == PNV_PHB_IODA1) {
			pe_info(pe, "DMA weight %d, assigned %d DMA32 segments\n",
				pe->dma_weight, segs);
			pnv_pci_ioda_setup_dma_pe(phb, pe, base, segs);
			pnv_pci_ioda1_setup_dma_pe(phb, pe, base, segs);
		} else if (phb->type == PNV_PHB_IODA2) {
			pe_info(pe, "Assign DMA32 space\n");
			segs = 0;