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

Commit e6cca5ba authored by Kyle Piefer's avatar Kyle Piefer Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Use API to configure DMA



We need to set up DMA at boot to fill in the
DMA data structures and allow attaching to IOMMU
context banks. Do this during GMU probe and IOMMU
probe.

Change-Id: Iae7dbc8cd1b678ae850345e57f49447a29f68308
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent bbf46794
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -270,6 +270,7 @@ static int gmu_iommu_cb_probe(struct gmu_device *gmu,
	int ret;

	dev = &pdev->dev;
	of_dma_configure(dev, node);

	ctx->dev = dev;
	ctx->domain = iommu_domain_alloc(&platform_bus_type);
@@ -1128,6 +1129,7 @@ int gmu_probe(struct kgsl_device *device)
		return ret;

	device->gmu.pdev = of_find_device_by_node(node);
	of_dma_configure(&gmu->pdev->dev, node);

	/* Set up GMU regulators */
	ret = gmu_regulators_probe(gmu, node);
+1 −0
Original line number Diff line number Diff line
@@ -2571,6 +2571,7 @@ static int _kgsl_iommu_cb_probe(struct kgsl_device *device,
			return PTR_ERR(ctx->dev);
	}

	of_dma_configure(ctx->dev, node);
	return 0;
}