Commit d5ad0e3d authored by Thierry Reding's avatar Thierry Reding
Browse files

drm/tegra: vic: Inherit DMA mask from host1x



VIC, just like all other host1x clients, has the same addressing range
as its parent host1x device. Inherit the DMA mask to reflect that.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent dd631e8a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -385,6 +385,13 @@ static int vic_probe(struct platform_device *pdev)
	struct vic *vic;
	int err;

	/* inherit DMA mask from host1x parent */
	err = dma_coerce_mask_and_coherent(dev, *dev->parent->dma_mask);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to set DMA mask: %d\n", err);
		return err;
	}

	vic = devm_kzalloc(dev, sizeof(*vic), GFP_KERNEL);
	if (!vic)
		return -ENOMEM;